diff options
author | click <none@none> | 2010-06-14 11:27:44 +0200 |
---|---|---|
committer | click <none@none> | 2010-06-14 11:27:44 +0200 |
commit | d226e92ebbe9058460b4f7221abb932dad9f929c (patch) | |
tree | eb32ff43e8dcf400cb5afc5d40aa9b30d21e9b37 | |
parent | 43f527b94fcf8a31dc4d57110a24323a1befe111 (diff) |
Fix linux compileissues when compiling with scripts - I actually forgot to reinstate it when cleaning up the CMakeLists.txt earlier. Sorry!
--HG--
branch : trunk
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1b450558ea4..22339551127 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,11 +10,12 @@ project(Trinity) cmake_minimum_required(VERSION 2.6) +cmake_policy(SET CMP0005 OLD) # Force out-of-source build string(COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" BUILDING_IN_SOURCE) if(BUILDING_IN_SOURCE) - message(FATAL_ERROR "This project requires an out of source build. Remove the file 'CMakeCache.txt' found in this directory before continuing, and create a separate build directory and run 'cmake path_to_project [options]' from there.") + message(FATAL_ERROR "This project requires an out of source build. Remove the file 'CMakeCache.txt' found in this directory before continuing, and create a separate build directory and run 'cmake path_to_project [options]' from there.") endif(BUILDING_IN_SOURCE) include(CheckIncludeFiles) @@ -94,7 +95,7 @@ message("") if(CONF_DIR) else(CONF_DIR) - set(CONF_DIR ${PREFIX}/etc) + set(CONF_DIR ${CMAKE_INSTALL_PREFIX}/etc) endif(CONF_DIR) set(LIBSDIR ${CMAKE_INSTALL_PREFIX}/lib) @@ -119,7 +120,6 @@ endif(DO_WORLDSERVER) if(DO_SCRIPTS) message("* Build Trinityscripts : Yes (default)") ADD_DEFINITIONS(-DDO_SCRIPTS) - add_definitions(-D_TRINITY_SCRIPT_CONFIG='"${CONF_DIR}/worldserver.conf"') else (DO_SCRIPTS) message("* Build Trinityscripts : No") endif(DO_SCRIPTS) |