Skip to content

Commit

Permalink
the last commit broke windows CI, still not figured out how to get cm…
Browse files Browse the repository at this point in the history
…ake to copy files across all platforms
  • Loading branch information
jmacey committed Oct 11, 2023
1 parent 86c922d commit 31c7bd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -309,15 +309,15 @@ if(NOT DEFINED PYNGL_ONLY)
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_SOURCE_DIR}/tests/files
${CMAKE_BINARY_DIR}/files
${CMAKE_BINARY_DIR}/${CMAKE_BUILD_TYPE}/files
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
OUTPUT ${CMAKE_BINARY_DIR}/files/
OUTPUT ${CMAKE_BINARY_DIR}/${CMAKE_BUILD_TYPE}/files/
COMMENT "copying test files"
)
# Now a custom target to copy the files which check to see if the files exist
add_custom_target(
CopyTestfiles ALL
DEPENDS ${CMAKE_BINARY_DIR}/files/
DEPENDS ${CMAKE_BINARY_DIR}/${CMAKE_BUILD_TYPE}/files/
)
# now add this a dependency for NGLTests so it gets run.
add_dependencies(NGLTests CopyTestfiles )
Expand Down

0 comments on commit 31c7bd5

Please sign in to comment.