summaryrefslogtreecommitdiffstats
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorGravatar Jeremie Guichard <djebrest@gmail.com>2017-03-11 11:41:56 +0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-03-11 08:05:22 -0800
commit1ff0aeed4c0cb5f682e0f16f7ac7b298a72ed3ef (patch)
treeb187aff6f80f85d907e436747d69675ecdaceaa2 /tests/CMakeLists.txt
parentea4df67b32d6ec9e0539c813ea2225ba367ff8a6 (diff)
downloadsubsurface-1ff0aeed4c0cb5f682e0f16f7ac7b298a72ed3ef.tar.gz
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 <djebrest@gmail.com>
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r--tests/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
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)