summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Linux-XL-CXX.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-09-16 16:33:24 (GMT)
committerBrad King <brad.king@kitware.com>2009-09-16 16:33:24 (GMT)
commitb5e558e291effd974e6d137bdec5f68a1a3c04a1 (patch)
treec3d41f870c706beebe4c170c508d2c2fcf957cbf /Modules/Platform/Linux-XL-CXX.cmake
parent932dac93b71e9d5d62130b461c2b4b6576b79b90 (diff)
downloadCMake-b5e558e291effd974e6d137bdec5f68a1a3c04a1.zip
CMake-b5e558e291effd974e6d137bdec5f68a1a3c04a1.tar.gz
CMake-b5e558e291effd974e6d137bdec5f68a1a3c04a1.tar.bz2
Fix XL C++ compiler flags on Linux
In Platform/Linux.cmake we add GNU flags as default for the platform which breaks non-GNU compilers. Later we should refactor these flag files to put compiler-specific flags only in files loaded for each compiler. Until then this commit fixes the XL C++ compiler flags on Linux by erasing the GNU flags. See issue #9469.
Diffstat (limited to 'Modules/Platform/Linux-XL-CXX.cmake')
-rw-r--r--Modules/Platform/Linux-XL-CXX.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/Platform/Linux-XL-CXX.cmake b/Modules/Platform/Linux-XL-CXX.cmake
new file mode 100644
index 0000000..2ba2ce8
--- /dev/null
+++ b/Modules/Platform/Linux-XL-CXX.cmake
@@ -0,0 +1,5 @@
+SET(CMAKE_SHARED_LIBRARY_C_FLAGS "")
+SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
+SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "")
+SET(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
+SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-qmkshrobj")