diff options
author | Loïc Guilloux <glx22@users.noreply.github.com> | 2021-04-02 10:15:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-02 10:15:45 +0200 |
commit | 799eb31ff199745888ffecf76a37e0d7cce437dd (patch) | |
tree | bb0ee0ee1b644d15d9883367c82ed645ebed63f8 /CMakeLists.txt | |
parent | e760c9fbec7ab4f0637662bd299369de6dee3db2 (diff) | |
download | openttd-799eb31ff199745888ffecf76a37e0d7cce437dd.tar.xz |
Change: [CMake] Copy AI/GS compatibility files to build dir (#8906)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c5f1d11b5..17ed2df8c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -220,6 +220,7 @@ if(MSVC) target_sources(openttd PRIVATE "${CMAKE_SOURCE_DIR}/os/windows/openttd.manifest") endif() +add_subdirectory(${CMAKE_SOURCE_DIR}/bin) add_subdirectory(${CMAKE_SOURCE_DIR}/src) add_subdirectory(${CMAKE_SOURCE_DIR}/media) @@ -240,7 +241,7 @@ if(IPO_FOUND) set_target_properties(openttd PROPERTIES INTERPROCEDURAL_OPTIMIZATION_MINSIZEREL True) set_target_properties(openttd PROPERTIES INTERPROCEDURAL_OPTIMIZATION_RELWITHDEBINFO True) endif() -set_target_properties(openttd PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/bin") +set_target_properties(openttd PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_BINARY_DIR}") process_compile_flags() include(LinkPackage) |