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>
This commit is contained in:
Jeremie Guichard 2017-03-11 11:41:56 +07:00 committed by Dirk Hohndel
parent ea4df67b32
commit 1ff0aeed4c

View file

@ -54,7 +54,7 @@ macro(TEST NAME FILE)
if(CMAKE_SYSTEM_NAME STREQUAL "Windows") if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
# Re-install dependencies in WINDOWS_STAGING_TESTS (and not in WINDOWSSTAGING) # Re-install dependencies in WINDOWS_STAGING_TESTS (and not in WINDOWSSTAGING)
# to avoid packing testing related dlls in the installer # 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 # Run test using wine
if(WINE_PROGRAM) if(WINE_PROGRAM)