From 9a5c78782eba94e6d5a73aa136c9675790681217 Mon Sep 17 00:00:00 2001 From: Lars Bilke Date: Wed, 26 Jun 2024 13:10:12 +0200 Subject: [PATCH] [cmake] tclap include in guix / conda build. --- scripts/cmake/Dependencies.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/cmake/Dependencies.cmake b/scripts/cmake/Dependencies.cmake index bec13b28f22..281dc4a29c5 100644 --- a/scripts/cmake/Dependencies.cmake +++ b/scripts/cmake/Dependencies.cmake @@ -43,7 +43,11 @@ else() endif() if(GUIX_BUILD OR CONDA_BUILD) - add_library(tclap INTERFACE IMPORTED) # header-only, nothing else to do + find_path(_tclap_include UnlabeledValueArg.h PATH_SUFFIXES tclap REQUIRED) + add_library(tclap INTERFACE IMPORTED) + target_include_directories( + tclap SYSTEM INTERFACE ${_tclap_include} ${_tclap_include}/.. + ) else() CPMFindPackage( NAME tclap