From 904bbeeea88ae3713eeec350033bfebf1c05bf50 Mon Sep 17 00:00:00 2001 From: Vicente Eduardo Ferrer Garcia Date: Tue, 23 Jan 2024 23:41:39 +0100 Subject: [PATCH] Solve issue with config test in windows. --- .../metacall_configuration_default_test/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/tests/metacall_configuration_default_test/CMakeLists.txt b/source/tests/metacall_configuration_default_test/CMakeLists.txt index 35771e07c..f82aca6df 100644 --- a/source/tests/metacall_configuration_default_test/CMakeLists.txt +++ b/source/tests/metacall_configuration_default_test/CMakeLists.txt @@ -142,6 +142,14 @@ add_test(NAME ${target} COMMAND $ ) +if(WIN32) + # Windows requires metacall to be in the same folder as the executable in order to run the test properly + add_custom_command(TARGET ${target} POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy $ ${CONFIGURATION_DEFAULT_OUTPUT_DIRECTORY} + COMMAND ${CMAKE_COMMAND} -E copy $ ${CONFIGURATION_DEFAULT_OUTPUT_DIRECTORY} + ) +endif() + # # Define test properties #