diff options
-rw-r--r-- | other/CMakeLists.txt | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/other/CMakeLists.txt b/other/CMakeLists.txt index 871a9e92..7e6c9eb9 100644 --- a/other/CMakeLists.txt +++ b/other/CMakeLists.txt | |||
@@ -1,13 +1,10 @@ | |||
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) | ||
5 | |||
6 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_bootstrap.cmake) | ||
7 | 4 | ||
8 | if(WIN32) | 5 | if(WIN32) |
9 | file(MAKE_DIRECTORY "C:/Users/${USER_NAME}/AppData/Roaming/.config/tox") | 6 | file(MAKE_DIRECTORY "$ENV{APPDATA}/.config/tox") |
10 | file(INSTALL DHTservers DESTINATION "C:/Users/${USER_NAME}/AppData/Roaming/.config/tox") | 7 | file(INSTALL DHTservers DESTINATION "$ENV{APPDATA}/.config/tox") |
11 | else() | 8 | else() |
12 | set(HOME "$ENV{HOME}") | 9 | set(HOME "$ENV{HOME}") |
13 | if(APPLE) | 10 | if(APPLE) |
@@ -19,6 +16,8 @@ else() | |||
19 | endif() | 16 | endif() |
20 | endif() | 17 | endif() |
21 | 18 | ||
19 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_bootstrap.cmake) | ||
20 | |||
22 | if(LINUX) | 21 | if(LINUX) |
23 | add_subdirectory(bootstrap_serverdaemon) | 22 | add_subdirectory(bootstrap_serverdaemon) |
24 | endif() | 23 | endif() |