summaryrefslogtreecommitdiff
path: root/win
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-04-29 23:09:09 -0400
committerattilamolnar <attilamolnar@hush.com>2013-05-02 23:38:46 +0200
commitd5991ed65206a4a493d2e263b46484a4b270ca2e (patch)
treee478c25a22c782f08849daff1162457b65be749d /win
parent9bee202b74abbf63b59963369deebaa3efdd551f (diff)
Fix logfile path on Windows
Fixes issue #510 reported by @JDowny
Diffstat (limited to 'win')
-rw-r--r--win/CMakeLists.txt10
1 files 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)