Skip to content

Commit 958e05c

Browse files
committed
set option variables for dependencies as cache variables
1 parent 45a4380 commit 958e05c

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ option(CCR_FETCH_DEPS "Fetch dependencies via FetchContent." On )
2525
option(CCR_BUILD_TESTS "Enable build of the tests" ${CCR_DEFAULTOPT})
2626
option(CCR_ENABLE_COVERAGE "Enable compiler flags for code coverage measurements" Off)
2727

28-
set(BUILD_SHARED_LIBS OFF)
28+
set(BUILD_SHARED_LIBS Off CACHE STRING "")
2929

3030
add_compile_options(-fsanitize=address)
3131
add_link_options(-fsanitize=address)

external/jbeder/yaml-cpp/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ FetchContent_Declare(
33
GIT_REPOSITORY https://github.com/jbeder/yaml-cpp.git
44
GIT_TAG 2f86d13775d119edbb69af52e5f566fd65c6953b # Unreleased
55
)
6-
set(YAML_ENABLE_PIC OFF)
6+
7+
set(YAML_ENABLE_PIC OFF CACHE STRING "")
8+
79
FetchContent_MakeAvailable(yaml-cpp)

external/jupyter-xeus/cpp-terminal/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ add_compile_options(
1111
-Wno-unused-but-set-variable
1212
)
1313

14-
set(CPPTERMINAL_BUILD_EXAMPLES Off)
15-
set(CPPTERMINAL_ENABLE_INSTALL Off)
16-
set(CPPTERMINAL_ENABLE_TESTING Off)
17-
set(CPPTERMINAL_ENABLE_DOCS Off)
14+
set(CPPTERMINAL_BUILD_EXAMPLES Off CACHE STRING "")
15+
set(CPPTERMINAL_ENABLE_INSTALL Off CACHE STRING "")
16+
set(CPPTERMINAL_ENABLE_TESTING Off CACHE STRING "")
17+
set(CPPTERMINAL_ENABLE_DOCS Off CACHE STRING "")
1818

1919
FetchContent_MakeAvailable(cpp-terminal)

0 commit comments

Comments
 (0)