mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed DHTservers' path for Windows
This commit is contained in:
parent
c12853275c
commit
6a2569c432
|
@ -1,13 +1,10 @@
|
||||||
cmake_minimum_required(VERSION 2.6.0)
|
cmake_minimum_required(VERSION 2.6.0)
|
||||||
|
|
||||||
cmake_policy(SET CMP0011 NEW)
|
cmake_policy(SET CMP0011 NEW)
|
||||||
SET(USER_NAME $ENV{USERNAME} CACHE STRING UserName)
|
|
||||||
|
|
||||||
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_bootstrap.cmake)
|
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
file(MAKE_DIRECTORY "C:/Users/${USER_NAME}/AppData/Roaming/.config/tox")
|
file(MAKE_DIRECTORY "$ENV{APPDATA}/.config/tox")
|
||||||
file(INSTALL DHTservers DESTINATION "C:/Users/${USER_NAME}/AppData/Roaming/.config/tox")
|
file(INSTALL DHTservers DESTINATION "$ENV{APPDATA}/.config/tox")
|
||||||
else()
|
else()
|
||||||
set(HOME "$ENV{HOME}")
|
set(HOME "$ENV{HOME}")
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
|
@ -19,6 +16,8 @@ else()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_bootstrap.cmake)
|
||||||
|
|
||||||
if(LINUX)
|
if(LINUX)
|
||||||
add_subdirectory(bootstrap_serverdaemon)
|
add_subdirectory(bootstrap_serverdaemon)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user