File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -13,19 +13,14 @@ include(CMakeDependentOption)
1313# NODE_EDITOR_FORCE_TEST_COLOR
1414
1515get_directory_property (_has_parent PARENT_DIRECTORY )
16- if (_has_parent)
17- set (NODE_EDITOR_ROOT_PROJECT OFF )
18- else ()
19- set (NODE_EDITOR_ROOT_PROJECT ON )
20- endif ()
2116
2217set (NODE_EDITOR_DEVELOPER_DEFAULTS "${NODE_EDITOR_ROOT_PROJECT} " CACHE BOOL "Turns on default settings for development of NodeEditor" )
2318
2419option (NODE_EDITOR_QT5 "Use Qt5" ON )
2520option (NODE_EDITOR_FORCE_TEST_COLOR "Force colorized unit test output" OFF )
26- cmake_dependent_option(NODE_EDITOR_BUILD_TESTING "Build tests" ${NODE_EDITOR_DEVELOPER_DEFAULTS} "BUILD_TESTING" ON )
27- cmake_dependent_option(NODE_EDITOR_BUILD_EXAMPLES "Build examples" ${NODE_EDITOR_DEVELOPER_DEFAULTS} "BUILD_EXAMPLES" ON )
28- cmake_dependent_option(NODE_EDITOR_BUILD_SHARED_LIBS "Build as shared library" ${NODE_EDITOR_DEVELOPER_DEFAULTS} "BUILD_SHARED_LIBS" ON )
21+ cmake_dependent_option(NODE_EDITOR_BUILD_TESTING "Build tests" OFF "BUILD_TESTING" ON )
22+ cmake_dependent_option(NODE_EDITOR_BUILD_EXAMPLES "Build examples" OFF "BUILD_EXAMPLES" ON )
23+ cmake_dependent_option(NODE_EDITOR_BUILD_SHARED_LIBS "Build as shared library" OFF "BUILD_SHARED_LIBS" ON )
2924
3025#-------------------------------------------------------------------------------------------------------------------------------------------
3126# Global options
@@ -93,7 +88,7 @@ file(GLOB_RECURSE NODES_HEADERS_FILES LIST_DIRECTORIES FALSE "include/*")
9388
9489if (NODE_EDITOR_BUILD_SHARED_LIBS)
9590 set (NODE_EDITOR_SHARED_OR_STATIC "SHARED" )
96- else (NODE_EDITOR_BUILD_SHARED_LIBS )
91+ else ()
9792 set (NODE_EDITOR_SHARED_OR_STATIC "STATIC" )
9893endif ()
9994
You can’t perform that action at this time.
0 commit comments