Skip to content

Commit acf575c

Browse files
committed
build BUGFIX put all binaries into one directory
1 parent 97aa264 commit acf575c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ else()
103103
message(STATUS "pkg-config not found, so it was not possible to check if libnetconf2 supports ${THREAD_COUNT} threads")
104104
endif()
105105

106+
# put all binaries into one directory (even from subprojects)
107+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR})
108+
106109
# source files
107110
set(SERVER_SRC
108111
src/common.c

cli/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ set(CLI_SRC
1616
linenoise/linenoise.c)
1717

1818
# netopeer2-cli target
19-
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR})
2019
add_executable(netopeer2-cli ${CLI_SRC} $<TARGET_OBJECTS:compat>)
2120

2221
# reuse server variables

0 commit comments

Comments
 (0)