PathScale.cmake 709 B

123456789101112131415161718192021
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. # This module is shared by multiple languages; use include blocker.
  4. if(__COMPILER_PATHSCALE)
  5. return()
  6. endif()
  7. set(__COMPILER_PATHSCALE 1)
  8. macro(__compiler_pathscale lang)
  9. # Feature flags.
  10. set(CMAKE_${lang}_VERBOSE_FLAG "-v")
  11. # Initial configuration flags.
  12. string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
  13. string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g -O0")
  14. string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os")
  15. string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3")
  16. string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -g -O2")
  17. endmacro()