commit c3945d9edeb304ccd9f3d44e9ab0bf94f5420694 (tree)
parent 4ffc2bbb5ec6993802a59f358c4316375615a27c
Author: kcbanner <kcbanner@gmail.com>
Date: Wed, 2 Nov 2022 10:12:22 -0400
cmake: output binaries to the build directory (ie. instead of Release/Debug subfolders)
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -168,6 +168,7 @@ foreach(CONFIG_TYPE ${CMAKE_CONFIGURATION_TYPES})
string(TOUPPER ${CONFIG_TYPE} CONFIG_TYPE)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_${CONFIG_TYPE} ${ZIG_CPP_LIB_DIR})
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_${CONFIG_TYPE} ${ZIG_CPP_LIB_DIR})
+ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_${CONFIG_TYPE} ${CMAKE_BINARY_DIR})
endforeach(CONFIG_TYPE CMAKE_CONFIGURATION_TYPES)
include_directories(${LLVM_INCLUDE_DIRS})