QCC-CXX.cmake 575 B

123456789101112131415
  1. # To include compiler feature detection
  2. include(Compiler/GNU-CXX)
  3. include(Compiler/QCC)
  4. __compiler_qcc(CXX)
  5. # If the toolchain uses qcc for CMAKE_CXX_COMPILER instead of QCC, the
  6. # default for the driver is not c++.
  7. set(CMAKE_CXX_COMPILE_OBJECT
  8. "<CMAKE_CXX_COMPILER> -lang-c++ <DEFINES> <INCLUDES> <FLAGS> -o <OBJECT> -c <SOURCE>")
  9. set(CMAKE_CXX_LINK_EXECUTABLE
  10. "<CMAKE_CXX_COMPILER> -lang-c++ <FLAGS> <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
  11. set(CMAKE_CXX_COMPILE_OPTIONS_VISIBILITY_INLINES_HIDDEN "-fvisibility-inlines-hidden")