diff options
author | Sean Qureshi <stqism@Risingstormgames.com> | 2013-08-18 04:12:33 -0700 |
---|---|---|
committer | Sean Qureshi <stqism@Risingstormgames.com> | 2013-08-18 04:12:33 -0700 |
commit | ffb8779182f8dd6562edd639b8a0bc4d3eac2012 (patch) | |
tree | 30d813aba3100cac02625f91d7525211a1344947 /other | |
parent | a5882f043315827868b3d59a184c7338c82f8960 (diff) | |
parent | 89a644089ceba004cbab9f9fee7c61fbcd4b1dd5 (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.txt | 5 |
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 @@ | |||
1 | cmake_minimum_required(VERSION 2.6.0) | 1 | cmake_minimum_required(VERSION 2.6.0) |
2 | 2 | ||
3 | cmake_policy(SET CMP0011 NEW) | 3 | cmake_policy(SET CMP0011 NEW) |
4 | SET(USER_NAME $ENV{USERNAME} CACHE STRING UserName) | ||
4 | 5 | ||
5 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_bootstrap.cmake) | 6 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_bootstrap.cmake) |
6 | 7 | ||
7 | if(WIN32) | 8 | if(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") |
10 | else() | 11 | else() |
11 | set(HOME "$ENV{HOME}") | 12 | set(HOME "$ENV{HOME}") |
12 | if(APPLE) | 13 | if(APPLE) |