From 89a644089ceba004cbab9f9fee7c61fbcd4b1dd5 Mon Sep 17 00:00:00 2001 From: d34th Date: Sun, 18 Aug 2013 07:10:22 -0400 Subject: [PATCH] Added username replacer for appdata on c drive --- other/CMakeLists.txt | 5 +++-- 1 file 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 @@ cmake_minimum_required(VERSION 2.6.0) cmake_policy(SET CMP0011 NEW) +SET(USER_NAME $ENV{USERNAME} CACHE STRING UserName) include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_bootstrap.cmake) if(WIN32) - file(MAKE_DIRECTORY %appdata%/.tox) - file(INSTALL DHTservers DESTINATION %appdata%/.tox) + file(MAKE_DIRECTORY "C:/Users/${USER_NAME}/AppData/Roaming/.tox") + file(INSTALL DHTservers DESTINATION "C:/Users/${USER_NAME}/AppData/Roaming/.tox") else() set(HOME "$ENV{HOME}") if(APPLE)