feat(Cmake/PCH): use target_precompile_headers instead of cotire (#5082)
This commit is contained in:
parent
9d4eebc61f
commit
e0b953b186
8 changed files with 7 additions and 5526 deletions
|
|
@ -10,13 +10,8 @@
|
|||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
#
|
||||
|
||||
# Require a min version Cmake
|
||||
cmake_minimum_required(VERSION 3.8...3.19)
|
||||
|
||||
# Fallback for using newer policies on CMake <3.12.
|
||||
if(${CMAKE_VERSION} VERSION_LESS 3.12)
|
||||
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
|
||||
endif()
|
||||
# Require version Cmake
|
||||
cmake_minimum_required(VERSION 3.16...3.21)
|
||||
|
||||
message(STATUS "CMake version: ${CMAKE_VERSION}")
|
||||
|
||||
|
|
@ -40,8 +35,7 @@ set(AC_PATH_ROOT "${CMAKE_SOURCE_DIR}")
|
|||
|
||||
# set macro-directory
|
||||
list(APPEND CMAKE_MODULE_PATH
|
||||
"${CMAKE_SOURCE_DIR}/src/cmake/macros"
|
||||
"${CMAKE_SOURCE_DIR}/deps/cotire/CMake")
|
||||
"${CMAKE_SOURCE_DIR}/src/cmake/macros")
|
||||
|
||||
include(CheckCXXSourceRuns)
|
||||
include(CheckIncludeFiles)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue