Make PCH_HEADER and PCH_INCLUDE always available, unbreaks Clang builds on non macOS platforms
This commit is contained in:
parent
2c113a48ce
commit
13d0b5334a
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
macro( precompiled_header includes header_name build_pch)
|
||||
if( ${CMAKE_COMPILER_IS_GNUCXX})
|
||||
if (NOT "${CMAKE_GENERATOR}" STREQUAL "Xcode")
|
||||
message(STATUS "Precompiled header generation")
|
||||
# Get the compiler flags for this build type
|
||||
string( TOUPPER "CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE}" flags_for_build_name )
|
||||
|
|
Loading…
Reference in a new issue