diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-12-25 12:43:02 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-12-25 12:43:02 +0100 |
commit | 966478d270a53eca1a5506414094ecea6235edfe (patch) | |
tree | d6812c6827000d09827499d475ad06dc9d474644 | |
parent | bab093ebbe392927a92ef201fe60344d5c1191dd (diff) |
cmake: move CMakeDetermineCXXCompiler after project()
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f5e1b730..645c0a9b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,16 +27,17 @@ set(CMAKE_C_LINKER_PREFERENCE_PROPAGATES OFF) set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES ON) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/") +include(opentrack-policy NO_POLICY_SCOPE) + +project(opentrack) +cmake_minimum_required(VERSION 3.10 FATAL_ERROR) include(CMakeDetermineCCompiler) include(CMakeDetermineCXXCompiler) include(CMakeParseArguments) -include(opentrack-mrproper) -project(opentrack) -cmake_minimum_required(VERSION 3.10 FATAL_ERROR) -include(opentrack-policy NO_POLICY_SCOPE) include(opentrack-load-user-settings) +include(opentrack-mrproper) set_property(GLOBAL PROPERTY opentrack-all-modules "") set_property(GLOBAL PROPERTY opentrack-all-source-dirs "") |