mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
In commit 8d61294c3e (PCH: Mark CMake PCH source files as -x
<lang>-header, 2020-09-04, v3.18.3~14^2) we removed the explicit `-x
objective-c++` flag. This broke cases with custom source extensions.
Restore the explicit `-x objective-c[++]` flag and put it before the
`<FLAGS>` placeholder. The latter will contain the proper `-x
objective-c[++]-header` value and will override the `-x objective-c[++]`
value set before.
Fixes: #21234
6 lines
295 B
CMake
6 lines
295 B
CMake
ADD_TEST_MACRO(ObjCXX.ObjC++ ObjC++)
|
|
ADD_TEST_MACRO(ObjCXX.simple-build-test simple-build-test)
|
|
ADD_TEST_MACRO(ObjCXX.cxx-file-extension-test cxx-file-extension-test)
|
|
ADD_TEST_MACRO(ObjCXX.objcxx-file-extension-test objcxx-file-extension-test)
|
|
ADD_TEST_MACRO(ObjCXX.cxx-as-objcxx cxx-as-objcxx)
|