From 567d8417e81ae89ab5225a866da69e0b9ace399a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 9 Feb 2016 02:26:22 +0100 Subject: CMake: use GNUInstallDirs with native multi-arch support We can now use CMAKE_INSTALL_*DIR instead of defining them manually. Also disable networkarea region plugin build by default. (bzr r4068.2.1) --- UnityCore/CMakeLists.txt | 16 ++++++++-------- UnityCore/DBusIndicators.cpp | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'UnityCore') diff --git a/UnityCore/CMakeLists.txt b/UnityCore/CMakeLists.txt index f055790d3..0693f7e67 100644 --- a/UnityCore/CMakeLists.txt +++ b/UnityCore/CMakeLists.txt @@ -149,22 +149,22 @@ set_target_properties(${CORE_LIB_NAME} PROPERTIES add_pch(pch/unitycore_pch.hh ${CORE_LIB_NAME}) install (TARGETS ${CORE_LIB_NAME} - RUNTIME DESTINATION bin - ARCHIVE DESTINATION lib - LIBRARY DESTINATION lib + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ) # # Headers # -install (FILES ${CORE_HEADERS} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/Unity-${UNITY_API_VERSION}/UnityCore) +install (FILES ${CORE_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/Unity-${UNITY_API_VERSION}/UnityCore) # # PkgConfig file # -set (EXEC_PREFIX "${CMAKE_INSTALL_PREFIX}") -set (LIBDIR "${CMAKE_INSTALL_PREFIX}/lib") -set (INCLUDEDIR "${CMAKE_INSTALL_PREFIX}/include") +set (EXEC_PREFIX "${CMAKE_INSTALL_LIBEXECDIR}") +set (LIBDIR "${CMAKE_INSTALL_LIBDIR}") +set (INCLUDEDIR "${CMAKE_INSTALL_INCLUDEDIR}") configure_file (unity-core.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/${CORE_LIB_NAME}.pc @ONLY) -install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${CORE_LIB_NAME}.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig) +install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${CORE_LIB_NAME}.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) diff --git a/UnityCore/DBusIndicators.cpp b/UnityCore/DBusIndicators.cpp index b890124c3..6021418f2 100644 --- a/UnityCore/DBusIndicators.cpp +++ b/UnityCore/DBusIndicators.cpp @@ -123,7 +123,7 @@ void DBusIndicators::Impl::CheckLocalService() // This is obviously hackish, but this part of the code is mostly hackish... // Let's attempt to run it from where we expect it to be - std::string cmd = PREFIXDIR + std::string("/lib/unity/unity-panel-service"); + std::string cmd = UNITYLIBDIR"/" + std::string("unity-panel-service"); LOG_WARN(logger) << "Couldn't load panel from installed services, " << "so trying to load panel from known location: " << cmd; -- cgit v1.2.3