From 2417bcd26f3faa974da43c64a412aec52b0de09c Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Fri, 10 Feb 2017 18:41:44 +0100 Subject: [PATCH] cmake: Install executables in bin/ on Unix, not lib/ Previously, executables like dbus-daemon were installed to the lib subdirectory, but this was unintended. RUNTIME DESTINATION is the equivalent of Autotools ${bindir}. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=99752 Reviewed-by: Simon McVittie --- cmake/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index c41fb3c..84aa60b 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -99,7 +99,7 @@ SET(BUILD_SHARED_LIBS ON) if(WIN32) set(INSTALL_TARGETS_DEFAULT_ARGS RUNTIME DESTINATION "bin" LIBRARY DESTINATION "lib" ARCHIVE DESTINATION "lib") else() - set(INSTALL_TARGETS_DEFAULT_ARGS RUNTIME DESTINATION "${EXPANDED_LIBDIR}" LIBRARY DESTINATION "${EXPANDED_LIBDIR}" ARCHIVE DESTINATION "${EXPANDED_LIBDIR}") + set(INSTALL_TARGETS_DEFAULT_ARGS RUNTIME DESTINATION "${EXPANDED_BINDIR}" LIBRARY DESTINATION "${EXPANDED_LIBDIR}" ARCHIVE DESTINATION "${EXPANDED_LIBDIR}") endif() if (CYGWIN) -- 2.7.4