From 5435f495605460a3915417cd2c5d2853e3986b59 Mon Sep 17 00:00:00 2001 From: Michael Tao Date: Thu, 5 Sep 2024 15:40:52 -0400 Subject: [PATCH 1/2] adding cli11 dep manually --- cmake/recipes/CLI11.cmake | 9 +++++++++ cmake/recipes/fast_envelope.cmake | 2 ++ 2 files changed, 11 insertions(+) create mode 100644 cmake/recipes/CLI11.cmake diff --git a/cmake/recipes/CLI11.cmake b/cmake/recipes/CLI11.cmake new file mode 100644 index 0000000000..7cf2052521 --- /dev/null +++ b/cmake/recipes/CLI11.cmake @@ -0,0 +1,9 @@ +if (TARGET CLI11::CLI11) + return() +endif() + +message(STATUS "Third-party (external): creating target 'CLI11::CLI11'") + +include(CPM) +CPMAddPackage("gh:CLIUtils/CLI11@2.4.2") + diff --git a/cmake/recipes/fast_envelope.cmake b/cmake/recipes/fast_envelope.cmake index dc680112d8..bb05f705df 100644 --- a/cmake/recipes/fast_envelope.cmake +++ b/cmake/recipes/fast_envelope.cmake @@ -8,6 +8,8 @@ endif() set(FAST_ENVELOPE_WITH_UNIT_TESTS OFF) set(FAST_ENVELOPE_ENABLE_TBB OFF) +include(CLI11) + # HACK because there is a linker error on Windows otherwise if(WIN32) set(FAST_ENVELOPE_WITH_GEOGRAM_PREDICATES ON) From 8e897e4c7b236b8a592313535193f6fd88ff307e Mon Sep 17 00:00:00 2001 From: Michael Tao Date: Fri, 6 Sep 2024 11:30:46 -0400 Subject: [PATCH 2/2] adding cli11 dep to main cmake --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5aa798a5dd..c13db87b64 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,6 +89,7 @@ include(fast_envelope) include(bvh) include(volume_mesher) include(onetbb) +include(CLI11) # Core library add_library(wildmeshing_toolkit)