Skip to content

Commit 89bac19

Browse files
committed
minor oversight for Linux tests
1 parent fca9721 commit 89bac19

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

tests/CMakeLists.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,13 @@ foreach(file ${PKG_TEST_REQUIRED_FILES})
5858
configure_file(${file} "${CMAKE_CURRENT_BINARY_DIR}/" COPYONLY)
5959
endforeach()
6060

61-
add_custom_command(
62-
TARGET pkg_test POST_BUILD
63-
COMMAND ${CMAKE_COMMAND} -E copy
64-
${CMAKE_CURRENT_BINARY_DIR}/../uncso2.dll
65-
${CMAKE_CURRENT_BINARY_DIR})
61+
if(WIN32)
62+
add_custom_command(
63+
TARGET pkg_test POST_BUILD
64+
COMMAND ${CMAKE_COMMAND} -E copy
65+
${CMAKE_CURRENT_BINARY_DIR}/../uncso2.dll
66+
${CMAKE_CURRENT_BINARY_DIR})
67+
endif()
6668

6769
include(CTest)
6870
include(Catch)

0 commit comments

Comments
 (0)