summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-02-20 16:33:40 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-02-20 16:33:40 (GMT)
commitc96c175484102b057109a7b7e8802844b812f4fe (patch)
treebd09f0a95b49fd14034d36ab9d249e64aa251261 /Modules/Platform
parentd712e40d3651dce104579bc1e7441d74712fa951 (diff)
downloadCMake-c96c175484102b057109a7b7e8802844b812f4fe.zip
CMake-c96c175484102b057109a7b7e8802844b812f4fe.tar.gz
CMake-c96c175484102b057109a7b7e8802844b812f4fe.tar.bz2
ENH: try to force c++ on qnx
Diffstat (limited to 'Modules/Platform')
-rw-r--r--Modules/Platform/QNX.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/Platform/QNX.cmake b/Modules/Platform/QNX.cmake
index e85b571..e3e19f7 100644
--- a/Modules/Platform/QNX.cmake
+++ b/Modules/Platform/QNX.cmake
@@ -22,3 +22,6 @@ 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(type)
+# force the language to be c++ since qnx only has gcc and not g++ and c++?
+SET(CMAKE_CXX_COMPILE_OBJECT
+ "<CMAKE_CXX_COMPILER> -x c++ <FLAGS> -o <OBJECT> -c <SOURCE>")