diff options
| author | click <none@none> | 2010-08-09 23:14:16 +0200 |
|---|---|---|
| committer | click <none@none> | 2010-08-09 23:14:16 +0200 |
| commit | 816acb11a46c39e678efe8012e0ac12c32cd271b (patch) | |
| tree | 21796f19a54aadf5c6f3623b4358d35fc5261cbf /src/server/scripts | |
| parent | 5709c8be0d88a134a25ca28d1cc77203d7666799 (diff) | |
BuilSystem: Clean up some small but annoying things from my earlier commits:
- return to using default CMake buildconfiguration (release, relwithdebinfo, debug, minsizerel
Note: These are not yet populated as buildmodes : relwithdebinfo / minsizerel (will be created later)
- change it so that genrev creates revision.h properly (after genrev has been compiled successfully)
- split scripts/game PCH creation depending on which part a user wants to compile (default on) (thanks shauren)
--HG--
branch : trunk
Diffstat (limited to 'src/server/scripts')
| -rw-r--r-- | src/server/scripts/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/CMakeLists.txt b/src/server/scripts/CMakeLists.txt index 792f6c81bfe..ae9ba964eca 100644 --- a/src/server/scripts/CMakeLists.txt +++ b/src/server/scripts/CMakeLists.txt @@ -18,7 +18,7 @@ file(GLOB_RECURSE scripts_examples Examples/*.cpp Examples/*.h) file(GLOB_RECURSE scripts_outdoorpvp OutdoorPvP/*.cpp OutdoorPvP/*.h) # Enable precompiled headers when using the GCC compiler. -if(PCH) +if( SCRIPTPCH ) include_directories( ${CMAKE_CURRENT_BINARY_DIR} ) @@ -142,7 +142,7 @@ add_library(scripts STATIC ${scripts_STAT_SRCS}) add_dependencies(scripts genrev) # Generate precompiled header -if(PCH) +if( SCRIPTPCH ) if(CMAKE_COMPILER_IS_GNUCXX) add_precompiled_header(scripts ${CMAKE_SOURCE_DIR}/src/server/scripts/PrecompiledHeaders/ScriptPCH.h) elseif(MSVC) |
