Fix cmake when not using phmaps

v1
Brett 2023-01-16 14:09:27 -05:00
parent e2a358ffd1
commit 0d2292e1d4
1 changed files with 5 additions and 2 deletions

View File

@ -22,6 +22,7 @@ endif()
#include parallel hashmaps if the user decided to download the submodule.
if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/libraries/parallel-hashmap/CMakeLists.txt)
set(USE_PHMAPS)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/libraries/parallel-hashmap/)
endif()
@ -34,7 +35,9 @@ message("Current Source: ${CMAKE_CURRENT_SOURCE_DIR}")
add_library(BLT ${STD_FILES} ${PROFILING_FILES})
target_include_directories(BLT PUBLIC include/)
target_link_libraries(BLT phmap)
if(${USE_PHMAPS})
target_link_libraries(BLT phmap)
endif()
message("BLT ${CMAKE_PROJECT_VERSION} Successfully included!")
if(${BUILD_TESTS})