[CMAKE] Disable PCH when the host system is Apple OS X.

svn path=/trunk/; revision=66700
This commit is contained in:
Amine Khaldi 2015-03-14 14:55:41 +00:00
parent 5d175f22e0
commit 470a162a83

View file

@ -368,7 +368,7 @@ endmacro()
set(PSEH_LIB "pseh")
# Macros
if(PCH AND (NOT ENABLE_CCACHE))
if(PCH AND (NOT ENABLE_CCACHE) AND (NOT CMAKE_HOST_APPLE))
add_compile_flags("-Winvalid-pch -Werror=invalid-pch")
macro(add_pch _target _pch _sources)
# When including x.h GCC looks for x.h.gch first