Skip to content

Commit d18bd4a

Browse files
committed
cmake: reverse the PCH PNaCl test
1 parent 905c292 commit d18bd4a

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
@@ -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.

0 commit comments

Comments
 (0)