Skip to content

Commit

Permalink
Fix: [CMake, MSVC] Don't copy regression exe's into a subfolder as th…
Browse files Browse the repository at this point in the history
…ey need have their lang files next to them.
  • Loading branch information
michicc committed Dec 13, 2020
1 parent abb746f commit a660dce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/scripts/Regression.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a660dce

Please sign in to comment.