From cb728ac7c4faefedc72e2b503f453be32fcccacd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20BOULMIER?= Date: Tue, 11 Jun 2019 13:39:03 -0400 Subject: [PATCH] fix(cmake): restoring output directory --- src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 70d07b4f..53e8b5e2 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -157,9 +157,11 @@ target_link_libraries(poly PUBLIC ) target_compile_options(poly PUBLIC $<$:$<$:-flto>>) +set_target_properties(poly PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/libs) add_executable(polybar main.cpp) target_link_libraries(polybar poly) +set_target_properties(poly PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) install(TARGETS polybar DESTINATION ${CMAKE_INSTALL_BINDIR}