summaryrefslogtreecommitdiff
path: root/cmake/scripts
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2020-12-13 19:00:25 +0100
committerMichael Lutz <michi@icosahedron.de>2020-12-13 22:45:50 +0100
commita660dce295d448ce6ef9911ee1cbd6e63af6618b (patch)
tree6d8c643cad9b00a04d0b4ac164b49d756fe07e4f /cmake/scripts
parentabb746fae3c47c81b5e259072ed4cbe95516b2ae (diff)
downloadopenttd-a660dce295d448ce6ef9911ee1cbd6e63af6618b.tar.xz
Fix: [CMake, MSVC] Don't copy regression exe's into a subfolder as they need have their lang files next to them.
Diffstat (limited to 'cmake/scripts')
-rw-r--r--cmake/scripts/Regression.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/scripts/Regression.cmake b/cmake/scripts/Regression.cmake
index af473ea9f..b38caed5c 100644
--- a/cmake/scripts/Regression.cmake
+++ b/cmake/scripts/Regression.cmake
@@ -19,8 +19,8 @@ endif()
# subsystem to console. The copy is needed as multiple regressions can run
# at the same time.
if(EDITBIN_EXECUTABLE)
- execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${OPENTTD_EXECUTABLE} regression/${REGRESSION_TEST}.exe)
- set(OPENTTD_EXECUTABLE "regression/${REGRESSION_TEST}.exe")
+ execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${OPENTTD_EXECUTABLE} regression_${REGRESSION_TEST}.exe)
+ set(OPENTTD_EXECUTABLE "regression_${REGRESSION_TEST}.exe")
execute_process(COMMAND ${EDITBIN_EXECUTABLE} /nologo /subsystem:console ${OPENTTD_EXECUTABLE})
endif()