cmake/Modules/Platform/QNX.cmake

17 lines
600 B
CMake
Raw Normal View History

2014-08-08 17:52:44 +02:00
include(Platform/GNU)
2013-03-16 19:13:01 +02:00
set(CMAKE_DL_LIBS "")
# Shared libraries with no builtin soname may not be linked safely by
# specifying the file path.
2013-03-16 19:13:01 +02:00
set(CMAKE_PLATFORM_USES_PATH_WHEN_NO_SONAME 1)
# Initialize C link type selection flags. These flags are used when
# building a shared library, shared module, or executable that links
# to other libraries to select whether to use the static or shared
# versions of the libraries.
2013-03-16 19:13:01 +02:00
foreach(type SHARED_LIBRARY SHARED_MODULE EXE)
set(CMAKE_${type}_LINK_STATIC_C_FLAGS "-Wl,-Bstatic")
set(CMAKE_${type}_LINK_DYNAMIC_C_FLAGS "-Wl,-Bdynamic")
endforeach()