1
0
Fork 0
forked from lthn/blockchain

cmake: require version 3.16 if PCH is enabled for Linux build

This commit is contained in:
sowle 2020-09-21 14:40:17 +03:00
parent 0186d4619b
commit a6cf555879
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -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)