build: set build type and per-build-type flags as early as possible
With the exception of the first c++ checks, this ensures that compiler tests are never run with the wrong build type's flags. Co-Authored-By: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>
This commit is contained in:
1 parent
f605f7a9c2
commit
56a9b847bb
2 files changed
+3
-4
No files matched your search
+1
-2
@@ -70,6 +70,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
|
||||
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/module)
|
||||
include(ProcessConfigurations)
|
||||
|
||||
#=============================
|
||||
# Configurable options
|
||||
@@ -230,8 +231,6 @@ if(BUILD_FOR_FUZZING)
|
||||
)
|
||||
endif()
|
||||
|
||||
include(ProcessConfigurations)
|
||||
|
||||
include(TryAppendCXXFlags)
|
||||
include(TryAppendLinkerFlag)
|
||||
|
||||
|
||||
Reference in new issue
Block a user