From d5991ed65206a4a493d2e263b46484a4b270ca2e Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 29 Apr 2013 23:09:09 -0400 Subject: Fix logfile path on Windows Fixes issue #510 reported by @JDowny --- win/CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/win/CMakeLists.txt b/win/CMakeLists.txt index f26b9a6c7..e6a854d99 100644 --- a/win/CMakeLists.txt +++ b/win/CMakeLists.txt @@ -5,7 +5,7 @@ project(InspIRCd CXX) set(CONF_PATH "conf" CACHE PATH "Configuration file path") set(MODULE_PATH "modules" CACHE PATH "Module path") set(DATA_PATH "data" CACHE PATH "Data path") -set(LOG_PATH "log" CACHE PATH "Log file path") +set(LOG_PATH "logs" CACHE PATH "Log file path") set(EXTRA_INCLUDES "" CACHE PATH "Extra include paths") set(EXTRA_LIBS "" CACHE PATH "Extra library paths") @@ -75,10 +75,10 @@ file(GLOB_RECURSE EXAMPLE_CONFIGS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "${INSPIR install(FILES ${EXAMPLE_CONFIGS} DESTINATION conf) # Create an empty data and logs directory and install them -file(MAKE_DIRECTORY data) -install(DIRECTORY "data" DESTINATION .) -file(MAKE_DIRECTORY logs) -install(DIRECTORY "logs" DESTINATION .) +file(MAKE_DIRECTORY ${DATA_PATH}) +install(DIRECTORY ${DATA_PATH} DESTINATION .) +file(MAKE_DIRECTORY ${LOG_PATH}) +install(DIRECTORY ${LOG_PATH} DESTINATION .) if(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake") include(InstallRequiredSystemLibraries) -- cgit v1.2.3