From 31c7bd579e0659e494f3e914e93093eeb99062f9 Mon Sep 17 00:00:00 2001 From: jmacey Date: Wed, 11 Oct 2023 13:40:34 +0100 Subject: [PATCH] the last commit broke windows CI, still not figured out how to get cmake to copy files across all platforms --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 95173e58..574083bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 )