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 @@ -425,10 +425,10 @@ function(ADD_PRECOMPILED_HEADER Target)
425425 add_dependencies (${Target} ${Target} -pch)
426426
427427 # PNaCl clang doesn't support -include-pch properly
428- if (NOT DAEMON_CXX_COMPILER_NAME STREQUAL "PNaCl" )
429- set_property (TARGET ${Target} APPEND PROPERTY COMPILE_OPTIONS "-include-pch;${OBJ_DIR} /${Target} .h.gch" )
430- else ()
428+ if (DAEMON_CXX_COMPILER_NAME STREQUAL "PNaCl" )
431429 set_property (TARGET ${Target} APPEND PROPERTY COMPILE_OPTIONS "-include;${OBJ_DIR} /${Target} .h;-Winvalid-pch" )
430+ else ()
431+ set_property (TARGET ${Target} APPEND PROPERTY COMPILE_OPTIONS "-include-pch;${OBJ_DIR} /${Target} .h.gch" )
432432 endif ()
433433 elseif (MSVC )
434434 # /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