diff options
author | Ben Boeckel <mathstuf@gmail.com> | 2015-11-12 21:32:36 -0500 |
---|---|---|
committer | Ben Boeckel <mathstuf@gmail.com> | 2015-11-12 21:56:14 -0500 |
commit | 2e9183e4de8fb5b5bcb2c6e2416a6b0b4a48682d (patch) | |
tree | 166eca6f3296bcf53b58b960bee41989c846ab9a | |
parent | 4714262c3d6a07d1d48a7fab44316280094e9589 (diff) |
cmake: set the output directory once
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | swaybg/CMakeLists.txt | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index acf09e86..c5f86189 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ project(sway C) set(CMAKE_C_FLAGS "-g") set(CMAKE_C_STANDARD 99) SET(CMAKE_C_EXTENSIONS OFF) -set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "bin/") +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin") add_definitions("-Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE") set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMake) diff --git a/swaybg/CMakeLists.txt b/swaybg/CMakeLists.txt index 9351441a..20aff980 100644 --- a/swaybg/CMakeLists.txt +++ b/swaybg/CMakeLists.txt @@ -7,7 +7,6 @@ find_package(Pango REQUIRED) include(Wayland) WAYLAND_ADD_PROTOCOL_CLIENT(proto-xdg-shell "xdg-shell.xml" xdg-shell) -set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "../bin/") include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/../include ${WAYLAND_CLIENT_INCLUDE_DIR} |