Skip to content

Commit 4a08fd5

Browse files
author
Yury Rakhuba
committed
optionally disable install targets
1 parent 653c07b commit 4a08fd5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ project(NodeEditor CXX)
55

66
set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
77
set(CMAKE_DISABLE_SOURCE_CHANGES ON)
8+
set(CMAKE_DISABLE_INSTALL_TARGETS OFF)
89

910
get_directory_property(_has_parent PARENT_DIRECTORY)
1011
if(_has_parent)
@@ -152,6 +153,7 @@ if(BUILD_TESTING)
152153
add_subdirectory(test)
153154
endif()
154155

156+
if (NOT ${CMAKE_DISABLE_INSTALL_TARGETS})
155157
###############
156158
# Installation
157159
##
@@ -185,3 +187,4 @@ install(FILES
185187
${CMAKE_CURRENT_BINARY_DIR}/NodeEditorConfig.cmake
186188
DESTINATION ${INSTALL_CONFIGDIR}
187189
)
190+
endif()

0 commit comments

Comments
 (0)