Commit e534cdb0 authored by Philipp Götze's avatar Philipp Götze
Browse files

🐞 Fixed a bug where benchmarks were built although been set to OFF

parent f387b1d0
...@@ -224,13 +224,13 @@ if(USE_NVM_TABLES) ...@@ -224,13 +224,13 @@ if(USE_NVM_TABLES)
if(NOT nvmds_POPULATED) if(NOT nvmds_POPULATED)
message(STATUS "Populating NVM-based data structures (nvmDS)") message(STATUS "Populating NVM-based data structures (nvmDS)")
set(BUILD_TEST_CASES_PARENT ${BUILD_TEST_CASES}) set(BUILD_TEST_CASES_PARENT ${BUILD_TEST_CASES})
set(BUILD_BENCHMARKS_PARENT ${BUILD_TEST_CASES}) set(BUILD_BENCHMARKS_PARENT ${BUILD_BENCHMARKS_CASES})
set(BUILD_TEST_CASES OFF CACHE INTERNAL "") set(BUILD_TEST_CASES OFF CACHE INTERNAL "")
set(BUILD_BENCHMARKS OFF CACHE INTERNAL "") set(BUILD_BENCHMARKS OFF CACHE INTERNAL "")
FetchContent_Populate(nvmDS) FetchContent_Populate(nvmDS)
add_subdirectory(${nvmds_SOURCE_DIR}/src ${nvmds_BINARY_DIR}) add_subdirectory(${nvmds_SOURCE_DIR}/src ${nvmds_BINARY_DIR})
set(BUILD_TEST_CASES ${BUILD_TEST_CASES_PARENT} CACHE INTERNAL "") set(BUILD_TEST_CASES ${BUILD_TEST_CASES_PARENT} CACHE INTERNAL "")
set(BUILD_BENCHMARKS ${BUILD_TEST_CASES_PARENT} CACHE INTERNAL "") set(BUILD_BENCHMARKS ${BUILD_BENCHMARKS_PARENT} CACHE INTERNAL "")
endif() endif()
endif() endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment