diff options
author | Brad King <brad.king@kitware.com> | 2014-07-21 14:36:07 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-07-21 14:36:07 (GMT) |
commit | c86b99c351d313f3e45ee895a6166d55e86b245c (patch) | |
tree | cb42c51eb7110835df361a6117d0d8c272ec6473 /Modules/Compiler/QCC.cmake | |
parent | b86f0e445b1d7f9e58c8d2d9f14c7501e734057d (diff) | |
parent | 3151024d241c581463d20bf0ce3d1060bdd22de4 (diff) | |
download | CMake-c86b99c351d313f3e45ee895a6166d55e86b245c.zip CMake-c86b99c351d313f3e45ee895a6166d55e86b245c.tar.gz CMake-c86b99c351d313f3e45ee895a6166d55e86b245c.tar.bz2 |
Merge topic 'fix-QCC-compile-flags'
3151024d QNX: Add missing flags for configurations and artifact creation.
Diffstat (limited to 'Modules/Compiler/QCC.cmake')
-rw-r--r-- | Modules/Compiler/QCC.cmake | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Modules/Compiler/QCC.cmake b/Modules/Compiler/QCC.cmake new file mode 100644 index 0000000..76477e4 --- /dev/null +++ b/Modules/Compiler/QCC.cmake @@ -0,0 +1,24 @@ + +#============================================================================= +# Copyright 2002-2014 Kitware, Inc. +# +# Distributed under the OSI-approved BSD License (the "License"); +# see accompanying file Copyright.txt for details. +# +# This software is distributed WITHOUT ANY WARRANTY; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# See the License for more information. +#============================================================================= +# (To distribute this file outside of CMake, substitute the full +# License text for the above reference.) +include(Compiler/GNU) + +macro(__compiler_qcc lang) + __compiler_gnu(${lang}) + + # http://www.qnx.com/developers/docs/6.4.0/neutrino/utilities/q/qcc.html#examples + set(CMAKE_${lang}_COMPILE_OPTIONS_TARGET "-V") + + set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-Wp,-isystem,") + set(CMAKE_DEPFILE_FLAGS_${lang} "-Wc,-MMD,<DEPFILE>,-MT,<OBJECT>,-MF,<DEPFILE>") +endmacro() |