Skip to content

Commit

Permalink
[cmake] tclap include in guix / conda build.
Browse files Browse the repository at this point in the history
  • Loading branch information
bilke committed Jun 27, 2024
1 parent 202651c commit 9a5c787
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/cmake/Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a5c787

Please sign in to comment.