Fixes cmake-gui causing RUN_IN_PLACE to be always off

master
MetaDucky 2013-05-26 09:49:02 +02:00 committed by Sfan5
parent 7a58c1d4ca
commit 40b2f36eb8
1 changed files with 7 additions and 0 deletions

View File

@ -28,6 +28,13 @@ else()
set(RUN_IN_PLACE 0 CACHE BOOL "Run directly in source directory structure") set(RUN_IN_PLACE 0 CACHE BOOL "Run directly in source directory structure")
endif() endif()
# RUN_IN_PLACE is exported as a #define value, ensure it's 1/0 instead of ON/OFF
if(RUN_IN_PLACE)
set(RUN_IN_PLACE 1)
else()
set(RUN_IN_PLACE 0)
endif()
set(BUILD_CLIENT 1 CACHE BOOL "Build client") set(BUILD_CLIENT 1 CACHE BOOL "Build client")
if(WIN32) if(WIN32)
set(BUILD_SERVER 0 CACHE BOOL "Build server") set(BUILD_SERVER 0 CACHE BOOL "Build server")