summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/QCC.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-07-12 13:15:15 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-07-12 13:15:58 (GMT)
commitf7f2b8078e6181f0f3c476c55d7cab3d86ffdaae (patch)
tree376575be94c267227455f02c5b0c341fe731287b /Modules/Compiler/QCC.cmake
parentf6f5f9f75f809a077ac3f451745904d9f3faaa85 (diff)
parente014df762b41e61b423e56637667a050be3a78e7 (diff)
downloadCMake-f7f2b8078e6181f0f3c476c55d7cab3d86ffdaae.zip
CMake-f7f2b8078e6181f0f3c476c55d7cab3d86ffdaae.tar.gz
CMake-f7f2b8078e6181f0f3c476c55d7cab3d86ffdaae.tar.bz2
Merge topic 'qnx_fix'
e014df762b QNX: Fix autogen compiler predefines detection Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2205
Diffstat (limited to 'Modules/Compiler/QCC.cmake')
-rw-r--r--Modules/Compiler/QCC.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Compiler/QCC.cmake b/Modules/Compiler/QCC.cmake
index 5cdedeb..9f2b735 100644
--- a/Modules/Compiler/QCC.cmake
+++ b/Modules/Compiler/QCC.cmake
@@ -19,6 +19,8 @@ macro(__compiler_qcc lang)
set(_CMAKE_${lang}_IPO_SUPPORTED_BY_CMAKE NO)
set(_CMAKE_${lang}_IPO_MAY_BE_SUPPORTED_BY_COMPILER NO)
+ set(CMAKE_${lang}_COMPILER_PREDEFINES_COMMAND "${CMAKE_${lang}_COMPILER}" "-Wp,-dM" "-E" "-c" "${CMAKE_ROOT}/Modules/CMakeCXXCompilerABI.cpp")
+
unset(CMAKE_${lang}_COMPILE_OPTIONS_IPO)
unset(CMAKE_${lang}_ARCHIVE_CREATE_IPO)
unset(CMAKE_${lang}_ARCHIVE_APPEND_IPO)