File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ option(
4040include (GNUInstallDirs)
4141set(INSTALL_CONFIGDIR ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})
4242
43- if(NOT BEMAN_EXECUTION_ENABLE_INSTALL OR CMAKE_SKIP_INSTALL_RULES)
43+ if(PROJECT_IS_TOP_LEVEL AND NOT BEMAN_EXECUTION_ENABLE_INSTALL OR CMAKE_SKIP_INSTALL_RULES)
44+ set(CMAKE_SKIP_INSTALL_RULES ON)
45+
4446 include (FetchContent)
4547
4648 # Add project_options from https://github.com/aminya/project_options
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ if(PROJECT_IS_TOP_LEVEL)
114114 if (beman_execution_FOUND)
115115 set (execution_tests exec-awaitable.test ) # only one sample to save time! CK
116116 else ()
117+ set (BEMAN_EXECUTION_ENABLE_INSTALL ON )
117118 add_subdirectory (../../.. beman_execution)
118119
119120 include (CMakePrintHelpers)
You can’t perform that action at this time.
0 commit comments