diff options
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) |