From 1843b635ee6388dfa4904f53c7eb8d3ae927ef3d Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Thu, 6 Aug 2020 16:03:53 +0200 Subject: CMakeLists.txt: Move GNUInstallDirs inclusion further up. Inspired by https://github.com/ubports/indicator-datetime/commit/c52883d7bbcece0d532a54cbe179e508586715ed. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 99dac2a..94d5894 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,8 @@ cmake_minimum_required (VERSION 2.8.9) list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) +include (GNUInstallDirs) + set (PROJECT_VERSION "0.4.1") set (PACKAGE ${CMAKE_PROJECT_NAME}) option (enable_tests "Build the package's automatic tests." ON) @@ -12,7 +14,6 @@ option (enable_lcov "Generate lcov code coverage reports." ON) ## GNU standard installation directories ## -include (GNUInstallDirs) set (CMAKE_INSTALL_PKGLIBEXECDIR "${CMAKE_INSTALL_LIBEXECDIR}/${CMAKE_PROJECT_NAME}") set (CMAKE_INSTALL_FULL_PKGLIBEXECDIR "${CMAKE_INSTALL_FULL_LIBEXECDIR}/${CMAKE_PROJECT_NAME}") -- cgit v1.2.3