Skip to content

Commit 1b51cc3

Browse files
committed
cmake: reverse the PCH PNaCl test
1 parent e552ff7 commit 1b51cc3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)