From 1b4621962fd6787b0006ca641944aa5e60b570e5 Mon Sep 17 00:00:00 2001 From: Vitaly Lipatov Date: Thu, 30 Jan 2020 14:51:42 +0300 Subject: [PATCH] CMakeLists.txt: put GNUInstallDirs after set project language --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 508a0b65..4c414f0e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,12 +6,16 @@ cmake_minimum_required(VERSION 3.2) #--------------------------------------------------------------------------------------- # Start spdlog project #--------------------------------------------------------------------------------------- -include(GNUInstallDirs) include(cmake/utils.cmake) include(cmake/ide.cmake) spdlog_extract_version() +project(spdlog VERSION ${SPDLOG_VERSION} LANGUAGES CXX) +message(STATUS "Build spdlog: ${SPDLOG_VERSION}") + +include(GNUInstallDirs) + #--------------------------------------------------------------------------------------- # Set default build to release #--------------------------------------------------------------------------------------- @@ -19,8 +23,6 @@ if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose Release or Debug" FORCE) endif() -project(spdlog VERSION ${SPDLOG_VERSION} LANGUAGES CXX) -message(STATUS "Build spdlog: ${SPDLOG_VERSION}") #--------------------------------------------------------------------------------------- # Compiler config