Skip to content

Commit df5c905

Browse files
author
dyzheng
committed
fix: copy support dir to build for MODULE_PSI_initializer_unit_test
install(DIRECTORY ...) only copies at install time, not during build. The test runs from CMAKE_CURRENT_BINARY_DIR and expects ./support/ with orbital/pseudo files. Use file(COPY ...) to make them available during ctest.
1 parent ef300fe commit df5c905

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

source/source_psi/test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ AddTest(
2626
endif()
2727

2828
install(DIRECTORY support DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
29+
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/support DESTINATION ${CMAKE_CURRENT_BINARY_DIR})

0 commit comments

Comments
 (0)