aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt19
1 files changed, 10 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 09623cd0e7d..5fece05a377 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -31,6 +31,16 @@ endif()
include(CheckCXXSourceRuns)
include(CheckIncludeFiles)
+
+# turn off PCH totally if enabled (hidden setting, mainly for devs)
+if( NOPCH )
+ set(USE_COREPCH 0)
+ set(USE_SCRIPTPCH 0)
+endif()
+
+# set default buildoptions and print them
+include(cmake/options.cmake)
+
include(CheckPlatform)
# basic packagesearching and setup (further support will be needed, this is a preliminary release!)
@@ -51,15 +61,6 @@ execute_process(
OUTPUT_VARIABLE HG_REVISION
)
-# turn off PCH totally if enabled (hidden setting, mainly for devs)
-if( NOPCH )
- set(USE_COREPCH 0)
- set(USE_SCRIPTPCH 0)
-endif()
-
-# set default buildoptions and print them
-include(cmake/options.cmake)
-
# add and generate revision.h
add_subdirectory(src/genrevision)