HP-CXX.cmake 782 B

12345678910111213141516
  1. set(CMAKE_CXX_VERBOSE_FLAG "-v")
  2. set(CMAKE_CXX_CREATE_ASSEMBLY_SOURCE "<CMAKE_CXX_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
  3. set(CMAKE_CXX_CREATE_PREPROCESSED_SOURCE "<CMAKE_CXX_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
  4. set(CMAKE_CXX_LINKER_WRAPPER_FLAG "-Wl,")
  5. set(CMAKE_CXX_LINKER_WRAPPER_FLAG_SEP ",")
  6. # HP aCC since version 3.80 supports the flag +hpxstd98 to get ANSI C++98
  7. # template support. It is known that version 6.25 doesn't need that flag.
  8. # Current assumption: the flag is needed for every version from 3.80 to 4
  9. # to get it working.
  10. if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4 AND
  11. NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.80)
  12. set(CMAKE_CXX98_STANDARD_COMPILE_OPTION "+hpxstd98")
  13. endif()