File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -428,10 +428,10 @@ function(ADD_PRECOMPILED_HEADER Target)
428428 add_dependencies (${Target} ${Target} -pch)
429429
430430 # PNaCl clang doesn't support -include-pch properly
431- if (NOT DAEMON_CXX_COMPILER_NAME STREQUAL "PNaCl" )
432- set_property (TARGET ${Target} APPEND PROPERTY COMPILE_OPTIONS "-include-pch;${OBJ_DIR} /${Target} .h.gch" )
433- else ()
431+ if (DAEMON_CXX_COMPILER_NAME STREQUAL "PNaCl" )
434432 set_property (TARGET ${Target} APPEND PROPERTY COMPILE_OPTIONS "-include;${OBJ_DIR} /${Target} .h;-Winvalid-pch" )
433+ else ()
434+ set_property (TARGET ${Target} APPEND PROPERTY COMPILE_OPTIONS "-include-pch;${OBJ_DIR} /${Target} .h.gch" )
435435 endif ()
436436 elseif (MSVC )
437437 # /Fp sets the PCH path used by either of the /Yc and /Yu options.
You can’t perform that action at this time.
0 commit comments