[cmake-commits] hoffman committed QNX.cmake 1.2.6.1 1.2.6.2
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Mar 20 11:33:19 EST 2007
Update of /cvsroot/CMake/CMake/Modules/Platform
In directory public:/mounts/ram/cvs-serv13230
Modified Files:
Tag: CMake-2-4
QNX.cmake
Log Message:
ENH: add c++ flag when compiling c++ code merge from main tree
Index: QNX.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/QNX.cmake,v
retrieving revision 1.2.6.1
retrieving revision 1.2.6.2
diff -u -d -r1.2.6.1 -r1.2.6.2
--- QNX.cmake 13 Oct 2006 14:52:01 -0000 1.2.6.1
+++ QNX.cmake 20 Mar 2007 16:33:17 -0000 1.2.6.2
@@ -22,3 +22,6 @@
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>")
More information about the Cmake-commits
mailing list