Added username replacer for appdata on c drive

This commit is contained in:
d34th 2013-08-18 07:10:22 -04:00
parent a5882f0433
commit 89a644089c

View File

@ -1,12 +1,13 @@
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) include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_bootstrap.cmake)
if(WIN32) if(WIN32)
file(MAKE_DIRECTORY %appdata%/.tox) file(MAKE_DIRECTORY "C:/Users/${USER_NAME}/AppData/Roaming/.tox")
file(INSTALL DHTservers DESTINATION %appdata%/.tox) file(INSTALL DHTservers DESTINATION "C:/Users/${USER_NAME}/AppData/Roaming/.tox")
else() else()
set(HOME "$ENV{HOME}") set(HOME "$ENV{HOME}")
if(APPLE) if(APPLE)