From: MetaDucky Date: Sun, 26 May 2013 07:49:02 +0000 (+0200) Subject: Fixes cmake-gui causing RUN_IN_PLACE to be always off X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=40b2f36eb8a93557c0e0957267992534452e091f;p=zefram%2Fminetest%2Fminetest_engine.git Fixes cmake-gui causing RUN_IN_PLACE to be always off --- diff --git a/CMakeLists.txt b/CMakeLists.txt index c4072bae..5c8753e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,13 @@ else() set(RUN_IN_PLACE 0 CACHE BOOL "Run directly in source directory structure") 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") if(WIN32) set(BUILD_SERVER 0 CACHE BOOL "Build server")