summaryrefslogtreecommitdiff
path: root/other
diff options
context:
space:
mode:
authorSean Qureshi <stqism@Risingstormgames.com>2013-08-18 04:12:33 -0700
committerSean Qureshi <stqism@Risingstormgames.com>2013-08-18 04:12:33 -0700
commitffb8779182f8dd6562edd639b8a0bc4d3eac2012 (patch)
tree30d813aba3100cac02625f91d7525211a1344947 /other
parenta5882f043315827868b3d59a184c7338c82f8960 (diff)
parent89a644089ceba004cbab9f9fee7c61fbcd4b1dd5 (diff)
Merge pull request #16 from grimd34th/tox-bugs
Added username replacer for appdata on c drive
Diffstat (limited to 'other')
-rw-r--r--other/CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/other/CMakeLists.txt b/other/CMakeLists.txt
index 22867773..10e5b051 100644
--- a/other/CMakeLists.txt
+++ b/other/CMakeLists.txt
@@ -1,12 +1,13 @@
1cmake_minimum_required(VERSION 2.6.0) 1cmake_minimum_required(VERSION 2.6.0)
2 2
3cmake_policy(SET CMP0011 NEW) 3cmake_policy(SET CMP0011 NEW)
4SET(USER_NAME $ENV{USERNAME} CACHE STRING UserName)
4 5
5include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_bootstrap.cmake) 6include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_bootstrap.cmake)
6 7
7if(WIN32) 8if(WIN32)
8 file(MAKE_DIRECTORY %appdata%/.tox) 9 file(MAKE_DIRECTORY "C:/Users/${USER_NAME}/AppData/Roaming/.tox")
9 file(INSTALL DHTservers DESTINATION %appdata%/.tox) 10 file(INSTALL DHTservers DESTINATION "C:/Users/${USER_NAME}/AppData/Roaming/.tox")
10else() 11else()
11 set(HOME "$ENV{HOME}") 12 set(HOME "$ENV{HOME}")
12 if(APPLE) 13 if(APPLE)