Skip to content

Commit c3945d9

Browse files
committed
cmake: output binaries to the build directory (ie. instead of Release/Debug subfolders)
1 parent 4ffc2bb commit c3945d9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ foreach(CONFIG_TYPE ${CMAKE_CONFIGURATION_TYPES})
168168
string(TOUPPER ${CONFIG_TYPE} CONFIG_TYPE)
169169
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_${CONFIG_TYPE} ${ZIG_CPP_LIB_DIR})
170170
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_${CONFIG_TYPE} ${ZIG_CPP_LIB_DIR})
171+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_${CONFIG_TYPE} ${CMAKE_BINARY_DIR})
171172
endforeach(CONFIG_TYPE CMAKE_CONFIGURATION_TYPES)
172173

173174
include_directories(${LLVM_INCLUDE_DIRS})

0 commit comments

Comments
 (0)