Fix cmake when not using phmaps
parent
e2a358ffd1
commit
0d2292e1d4
|
@ -22,6 +22,7 @@ endif()
|
||||||
|
|
||||||
#include parallel hashmaps if the user decided to download the submodule.
|
#include parallel hashmaps if the user decided to download the submodule.
|
||||||
if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/libraries/parallel-hashmap/CMakeLists.txt)
|
if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/libraries/parallel-hashmap/CMakeLists.txt)
|
||||||
|
set(USE_PHMAPS)
|
||||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/libraries/parallel-hashmap/)
|
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/libraries/parallel-hashmap/)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -34,7 +35,9 @@ message("Current Source: ${CMAKE_CURRENT_SOURCE_DIR}")
|
||||||
|
|
||||||
add_library(BLT ${STD_FILES} ${PROFILING_FILES})
|
add_library(BLT ${STD_FILES} ${PROFILING_FILES})
|
||||||
target_include_directories(BLT PUBLIC include/)
|
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!")
|
message("BLT ${CMAKE_PROJECT_VERSION} Successfully included!")
|
||||||
|
|
||||||
if(${BUILD_TESTS})
|
if(${BUILD_TESTS})
|
||||||
|
@ -49,4 +52,4 @@ if(${BUILD_TESTS})
|
||||||
|
|
||||||
target_link_libraries(BLT_TESTS BLT)
|
target_link_libraries(BLT_TESTS BLT)
|
||||||
message("BLT tests included!")
|
message("BLT tests included!")
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue