From 1ff0aeed4c0cb5f682e0f16f7ac7b298a72ed3ef Mon Sep 17 00:00:00 2001 From: Jeremie Guichard Date: Sat, 11 Mar 2017 11:41:56 +0700 Subject: Fix error in install target for tests on Windows The rule was working when called from the fake test used as preparation step in check target on Windows, but did not work for the normal install target. Signed-off-by: Jeremie Guichard --- tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 3d8d19f7a..294f26d05 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -54,7 +54,7 @@ macro(TEST NAME FILE) if(CMAKE_SYSTEM_NAME STREQUAL "Windows") # Re-install dependencies in WINDOWS_STAGING_TESTS (and not in WINDOWSSTAGING) # to avoid packing testing related dlls in the installer - install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} -DSUBSURFACE_TARGET=${NAME} -DSUBSURFACE_SOURCE=${SUBSURFACE_SOURCE} -DSTAGING=${WINDOWS_STAGING_TESTS} -P ${CMAKE_SOURCE_DIR}/cmake/Modules/dlllist.cmake)") + install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} -DSUBSURFACE_TARGET=${NAME} -DSUBSURFACE_SOURCE=${SUBSURFACE_SOURCE} -DSTAGING=${WINDOWS_STAGING_TESTS} -P ${CMAKE_SOURCE_DIR}/cmake/Modules/dlllist.cmake WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})") # Run test using wine if(WINE_PROGRAM) -- cgit v1.2.3-70-g09d2