forked from lthn/blockchain
cmake: require version 3.16 if PCH is enabled for Linux build
This commit is contained in:
parent
0186d4619b
commit
a6cf555879
1 changed files with 1 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ MACRO(INIT_SHARED_PCH)
|
|||
IF(MSVC)
|
||||
set_property(SOURCE "pch/stdafx.cpp" APPEND_STRING PROPERTY COMPILE_FLAGS " /Fo$(OutDir) /Z7 /Fd$(OutDir)vc$(PlatformToolsetVersion).pdb /Ycstdafx.h /Fp$(TargetDir)pch.pch")
|
||||
ELSEIF(APPLE OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
target_precompile_headers(pch PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/pch/stdafx.h")
|
||||
ENDIF()
|
||||
ENDIF(USE_PCH)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue