Add support for custom pointers. (#258)

* Add support for custom pointers.

* Add comment

* lowercase `OpenMP` in `CMakeLists.txt`
This commit is contained in:
Gregory Popovitch
2024-11-02 17:48:08 -04:00
committed by GitHub
parent 2d0b499273
commit debe606647
5 changed files with 75 additions and 11 deletions
+9 -3
View File
@@ -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)