diff --git a/CMakeLists.txt b/CMakeLists.txt index 95c6270..8ad7a66 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}) @@ -49,4 +52,4 @@ if(${BUILD_TESTS}) target_link_libraries(BLT_TESTS BLT) message("BLT tests included!") -endif() \ No newline at end of file +endif()