projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a58c1d
)
Fixes cmake-gui causing RUN_IN_PLACE to be always off
author
MetaDucky
<metaducky AT gmail DOT com>
Sun, 26 May 2013 07:49:02 +0000
(09:49 +0200)
committer
Sfan5
<sfan5@live.de>
Thu, 13 Jun 2013 14:45:52 +0000
(16:45 +0200)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index c4072bae3ceb7c0dbd4557099d46820b426c16d4..5c8753e78779ade00d090e5d93eaa1f8b72511c0 100644
(file)
--- 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")