Skip to content
Snippets Groups Projects
Commit cde7e4e5 authored by Simon Praetorius's avatar Simon Praetorius
Browse files

Fix the cmake configuration of the external packages

parent 976b5ec6
No related branches found
No related tags found
No related merge requests found
Pipeline #75556 failed
......@@ -34,7 +34,7 @@ add_subdirectory(libs)
# define an exported dune library
dune_add_library(dunemeshdist INTERFACE
EXPORT_NAME MeshDist NAMESPACE Dune::)
target_compile_features(dunemeshdist INTERFACE CXX_std_20)
target_compile_features(dunemeshdist INTERFACE cxx_std_20)
# link external packages
if(ENABLE_NANOFLANN)
......
......@@ -7,7 +7,10 @@ if(ENABLE_NANOFLANN)
GIT_REPOSITORY https://github.com/jlblancoc/nanoflann.git # the repository
GIT_TAG v1.6.2 # the tag
)
FetchContent_MakeAvailable(nanoflann)
FetchContent_GetProperties(nanoflann)
if(NOT nanoflann_POPULATED)
FetchContent_Populate(nanoflann)
endif()
file(GLOB NANOFLANN_HEADERS CONFIGURE_DEPENDS "${nanoflann_SOURCE_DIR}/include/*.hpp")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment