summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-11-08 23:07:41 (GMT)
committerBrad King <brad.king@kitware.com>2002-11-08 23:07:41 (GMT)
commit1ccd1efe3e7c7147f25549ca90c4a58f9f153d6a (patch)
tree7e36647bbb142dac3847d8ee82541966930e754b /Modules
parent3a6d52f4c5a2cf7bb0fd0ec0e46cf1802d82c77b (diff)
downloadCMake-1ccd1efe3e7c7147f25549ca90c4a58f9f153d6a.zip
CMake-1ccd1efe3e7c7147f25549ca90c4a58f9f153d6a.tar.gz
CMake-1ccd1efe3e7c7147f25549ca90c4a58f9f153d6a.tar.bz2
ENH: Adding support for comeau C++ compiler.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/Linux-como.cmake16
1 files changed, 16 insertions, 0 deletions
diff --git a/Modules/Platform/Linux-como.cmake b/Modules/Platform/Linux-como.cmake
new file mode 100644
index 0000000..64bed7a
--- /dev/null
+++ b/Modules/Platform/Linux-como.cmake
@@ -0,0 +1,16 @@
+# create a shared C++ library
+SET(CMAKE_CXX_CREATE_SHARED_LIBRARY
+ "<CMAKE_CXX_COMPILER> --prelink_objects <OBJECTS>"
+ "<CMAKE_CXX_COMPILER> <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
+
+# create a C++ static library
+SET(CMAKE_CXX_CREATE_STATIC_LIBRARY
+ "<CMAKE_CXX_COMPILER> --prelink_objects <OBJECTS>"
+ "<CMAKE_AR> cr <TARGET> <OBJECTS> "
+ "<CMAKE_RANLIB> <TARGET> ")
+
+SET(CMAKE_CXX_LINK_EXECUTABLE
+ "<CMAKE_CXX_COMPILER> --prelink_objects <OBJECTS>"
+ "<CMAKE_CXX_COMPILER> <CMAKE_CXX_LINK_FLAGS> <FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
+
+SET(CMAKE_SHARED_LIBRARY_RUNTIME_FLAG "")