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 #