QCC.cmake 969 B

123456789101112131415161718192021222324
  1. #=============================================================================
  2. # Copyright 2002-2014 Kitware, Inc.
  3. #
  4. # Distributed under the OSI-approved BSD License (the "License");
  5. # see accompanying file Copyright.txt for details.
  6. #
  7. # This software is distributed WITHOUT ANY WARRANTY; without even the
  8. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  9. # See the License for more information.
  10. #=============================================================================
  11. # (To distribute this file outside of CMake, substitute the full
  12. # License text for the above reference.)
  13. include(Compiler/GNU)
  14. macro(__compiler_qcc lang)
  15. __compiler_gnu(${lang})
  16. # http://www.qnx.com/developers/docs/6.4.0/neutrino/utilities/q/qcc.html#examples
  17. set(CMAKE_${lang}_COMPILE_OPTIONS_TARGET "-V")
  18. set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-Wp,-isystem,")
  19. set(CMAKE_DEPFILE_FLAGS_${lang} "-Wc,-MD,<DEPFILE>,-MT,<OBJECT>,-MF,<DEPFILE>")
  20. endmacro()