summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeOBJCXXInformation.cmake
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@qt.io>2020-09-04 17:23:17 (GMT)
committerCristian Adam <cristian.adam@qt.io>2020-09-04 17:23:17 (GMT)
commit8d61294c3e127ceb6284fccb9cdc60287889fd1f (patch)
treed3b02375c124606a65f7be73e503076cb90b0ad7 /Modules/CMakeOBJCXXInformation.cmake
parentfff360c60c7e428054306fc0f02126ac7fd34410 (diff)
downloadCMake-8d61294c3e127ceb6284fccb9cdc60287889fd1f.zip
CMake-8d61294c3e127ceb6284fccb9cdc60287889fd1f.tar.gz
CMake-8d61294c3e127ceb6284fccb9cdc60287889fd1f.tar.bz2
PCH: Mark CMake PCH source files as -x <lang>-header
Fixes: #21163
Diffstat (limited to 'Modules/CMakeOBJCXXInformation.cmake')
-rw-r--r--Modules/CMakeOBJCXXInformation.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeOBJCXXInformation.cmake b/Modules/CMakeOBJCXXInformation.cmake
index 71beb7f..4be9762 100644
--- a/Modules/CMakeOBJCXXInformation.cmake
+++ b/Modules/CMakeOBJCXXInformation.cmake
@@ -263,7 +263,7 @@ endif()
# compile an Objective-C++ file into an object file
if(NOT CMAKE_OBJCXX_COMPILE_OBJECT)
set(CMAKE_OBJCXX_COMPILE_OBJECT
- "<CMAKE_OBJCXX_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -x objective-c++ -o <OBJECT> -c <SOURCE>")
+ "<CMAKE_OBJCXX_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -o <OBJECT> -c <SOURCE>")
endif()
if(NOT CMAKE_OBJCXX_LINK_EXECUTABLE)