From 3a2bb2fcfdbe66028c1a30f9820775b05be36b03 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 15 Jun 2024 16:01:22 +0200 Subject: Build: Normalize executable locations in build directory for all platforms (cherry picked from commit a7c42f1ed55e586d0d817dd99865aa7c024b0140) --- cmake/platform/unix/settings.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmake/platform/unix') diff --git a/cmake/platform/unix/settings.cmake b/cmake/platform/unix/settings.cmake index 2dd8197e293..bcd25af4903 100644 --- a/cmake/platform/unix/settings.cmake +++ b/cmake/platform/unix/settings.cmake @@ -46,6 +46,10 @@ if(APPLE) endif() message(STATUS "UNIX: Detected compiler: ${CMAKE_C_COMPILER}") + +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/$/bin") +set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/$/lib") + if(CMAKE_C_COMPILER MATCHES "gcc" OR CMAKE_C_COMPILER_ID STREQUAL "GNU") include(${CMAKE_SOURCE_DIR}/cmake/compiler/gcc/settings.cmake) elseif(CMAKE_C_COMPILER MATCHES "icc") -- cgit v1.2.3