3 # GCC is the default compiler on QNX 6.3.
6 # The QNX GCC does not seem to have -isystem so remove the flag.
7 SET(CMAKE_INCLUDE_SYSTEM_FLAG_C)
8 SET(CMAKE_INCLUDE_SYSTEM_FLAG_CXX)
11 SET(CMAKE_SHARED_LIBRARY_C_FLAGS "")
12 SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "")
13 SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared")
14 SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,")
15 SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")
16 SET(CMAKE_SHARED_LIBRARY_RPATH_LINK_C_FLAG "-Wl,-rpath-link,")
17 SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,")
18 SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,-soname,")
19 SET(CMAKE_EXE_EXPORTS_C_FLAG "-Wl,--export-dynamic")
20 SET(CMAKE_EXE_EXPORTS_CXX_FLAG "-Wl,--export-dynamic")
22 # Shared libraries with no builtin soname may not be linked safely by
23 # specifying the file path.
24 SET(CMAKE_PLATFORM_USES_PATH_WHEN_NO_SONAME 1)
26 # Initialize C link type selection flags. These flags are used when
27 # building a shared library, shared module, or executable that links
28 # to other libraries to select whether to use the static or shared
29 # versions of the libraries.
30 FOREACH(type SHARED_LIBRARY SHARED_MODULE EXE)
31 SET(CMAKE_${type}_LINK_STATIC_C_FLAGS "-Wl,-Bstatic")
32 SET(CMAKE_${type}_LINK_DYNAMIC_C_FLAGS "-Wl,-Bdynamic")
34 # force the language to be c++ since qnx only has gcc and not g++ and c++?
35 SET(CMAKE_CXX_COMPILE_OBJECT
36 "<CMAKE_CXX_COMPILER> -x c++ <DEFINES> <FLAGS> -o <OBJECT> -c <SOURCE>")
38 INCLUDE(Platform/UnixPaths)