[OBJCXX/PCH] Issue when you force language of a file
Hello,
I think recently (probably in 3.18.3) PCH's broke for OBJCXX files. We have some .cpp
files that we force language to OBJCXX
on Apple platforms like this:
if(APPLE)
set_source_files_properties(
${PROJECT_SOURCE_DIR}/Library/LibraryUpdateManager.cpp
${PROJECT_SOURCE_DIR}/iTunesDatabaseLoader.cpp
PROPERTIES
LANGUAGE OBJCXX
XCODE_EXPLICIT_FILE_TYPE sourcecode.cpp.objcpp
)
endif()
This has worked fine up until recently - I think it can be related to: 8d61294c
Now with 3.18.3 it seems like the x objective-c++
is no longer passed when compiling the file causing issues like:
[2020-10-05T07:24:01.686Z] error: Objective-C was enabled in PCH file but is currently disabled
Will try to rollback to 3.18.2 right now to verify that it fixes the issue.