From 3791149f349affb2be0e862869669cc946fbcea8 Mon Sep 17 00:00:00 2001 From: Gliniak <153369+Gliniak@users.noreply.github.com> Date: Fri, 20 Mar 2026 21:54:59 +0100 Subject: [PATCH] [Build] Fixed incorrect destination for VS executable --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index eaa2cf832..32b35bf72 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,9 +96,13 @@ if(MSVC) /ignore:4221 ) + # In VS we're in build/vs directory. For backward compability move back directory above. cmake_path(GET CMAKE_BINARY_DIR PARENT_PATH CMAKE_PARENT_DIR) include_directories(${CMAKE_PARENT_DIR}) + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_PARENT_DIR}/bin/${XE_PLATFORM_NAME}") + set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_PARENT_DIR}/bin/${XE_PLATFORM_NAME}") + # Global Windows system libraries link_libraries( ntdll wsock32 ws2_32 xinput comctl32 shcore shlwapi dxguid bcrypt