Skip to content

Commit bca31c9

Browse files
committed
Cache BUILD_TESTING/EXAMPLES
1 parent cd4e065 commit bca31c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@ target_include_directories(
4343
$<INSTALL_INTERFACE:include/${PROJECT_NAME}-${PROJECT_VERSION}>
4444
)
4545

46+
option(mallocMC_BUILD_TESTING "Turn on/off building the tests" OFF)
4647
if(mallocMC_BUILD_TESTING)
4748
include(${CMAKE_CURRENT_LIST_DIR}/cmake/tools.cmake)
4849
enable_testing()
4950
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/test ${CMAKE_BINARY_DIR}/test)
5051
endif()
5152

53+
option(mallocMC_BUILD_EXAMPLES "Turn on/off building the examples" OFF)
5254
if(mallocMC_BUILD_EXAMPLES)
5355
include(${CMAKE_CURRENT_LIST_DIR}/cmake/tools.cmake)
5456
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/examples ${CMAKE_BINARY_DIR}/examples)

0 commit comments

Comments
 (0)