mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 16:40:39 +08:00
Add support for custom pointers. (#258)
* Add support for custom pointers. * Add comment * lowercase `OpenMP` in `CMakeLists.txt`
This commit is contained in:
committed by
GitHub
parent
2d0b499273
commit
debe606647
Vendored
+9
-3
@@ -208,7 +208,7 @@ if (PHMAP_BUILD_EXAMPLES)
|
||||
# -------------------------------------------------------------
|
||||
find_package(OpenMP)
|
||||
find_package(Boost 1.70.0)
|
||||
if (OPENMP_FOUND AND Boost_FOUND AND "cxx_std_20" IN_LIST CMAKE_CXX_COMPILE_FEATURES)
|
||||
if (OpenMP_FOUND AND Boost_FOUND AND "cxx_std_20" IN_LIST CMAKE_CXX_COMPILE_FEATURES)
|
||||
add_executable(ex_llil4map examples/llil4map.cc phmap.natvis)
|
||||
target_include_directories(ex_llil4map PRIVATE ${Boost_INCLUDE_DIRS})
|
||||
target_compile_features(ex_llil4map PUBLIC cxx_std_20)
|
||||
@@ -219,11 +219,17 @@ if (PHMAP_BUILD_EXAMPLES)
|
||||
target_link_libraries(ex_llil4map PRIVATE OpenMP::OpenMP_CXX)
|
||||
target_compile_options(ex_llil4map PRIVATE "${OpenMP_CXX_FLAGS}")
|
||||
|
||||
file(COPY examples/llil_utils DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
|
||||
endif()
|
||||
|
||||
if (Boost_FOUND)
|
||||
add_executable(ex_custom_pointer examples/custom_pointer.cc phmap.natvis)
|
||||
target_include_directories(ex_custom_pointer PRIVATE ${Boost_INCLUDE_DIRS})
|
||||
|
||||
add_executable(ex_llil examples/llil.cc phmap.natvis)
|
||||
target_include_directories(ex_llil PRIVATE ${Boost_INCLUDE_DIRS})
|
||||
target_compile_features(ex_llil PUBLIC cxx_std_20)
|
||||
|
||||
file(COPY examples/llil_utils DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
|
||||
target_link_libraries(ex_llil Threads::Threads)
|
||||
endif()
|
||||
|
||||
target_link_libraries(ex_knucleotide Threads::Threads)
|
||||
|
||||
Reference in New Issue
Block a user