Skip to content

Commit

Permalink
Add CLIF_DEPS to cmake_parse_arguments inside add_pyclif_library_for_…
Browse files Browse the repository at this point in the history
…test
  • Loading branch information
Ralf W. Grosse-Kunstleve committed Dec 11, 2023
1 parent 8ca3c54 commit 664d95a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clif/testing/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@ add_custom_target(runPyClifIntegrationTests
#
# $> ninja [pyclif_library_target_name]_test
function(add_pyclif_library_for_test name)
cmake_parse_arguments(PYCLIF_TEST_LIBRARY "" "" "TEST;PY_DEPS" ${ARGN})
cmake_parse_arguments(PYCLIF_TEST_LIBRARY "" "" "TEST;PY_DEPS;CLIF_DEPS" ${ARGN})
if (NOT DEFINED PYCLIF_TEST_LIBRARY_TEST)
set(PYCLIF_TEST_LIBRARY_TEST "${name}_test.py")
endif()

add_pyclif_library(${name}
${ARGN}
CLIF_DEPS ${PYCLIF_TEST_LIBRARY_CLIF_DEPS}
)

clif_target_name(${name} lib_target_name)
Expand Down

0 comments on commit 664d95a

Please sign in to comment.