Skip to content

Commit cd6bc90

Browse files
authored
Removed unnecessary items
1 parent 9554e1c commit cd6bc90

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

CMakeLists.txt

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,14 @@ include(CMakeDependentOption)
1313
# NODE_EDITOR_FORCE_TEST_COLOR
1414

1515
get_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

2217
set(NODE_EDITOR_DEVELOPER_DEFAULTS "${NODE_EDITOR_ROOT_PROJECT}" CACHE BOOL "Turns on default settings for development of NodeEditor")
2318

2419
option(NODE_EDITOR_QT5 "Use Qt5" ON)
2520
option(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

9489
if (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")
9893
endif()
9994

0 commit comments

Comments
 (0)