summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-03-14 19:03:16 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-03-14 19:03:16 (GMT)
commit88bd3b5281a146e1d1a31af4ab768a427341aedf (patch)
tree31bcd668e2890fabf59cfdd5c2e4f53bc2c82f7b /Modules
parent8e702ac5a800fcd4fce0984b7a0e439b77d68ae9 (diff)
downloadCMake-88bd3b5281a146e1d1a31af4ab768a427341aedf.zip
CMake-88bd3b5281a146e1d1a31af4ab768a427341aedf.tar.gz
CMake-88bd3b5281a146e1d1a31af4ab768a427341aedf.tar.bz2
ENH: add support for removing language flags from shared library and shared module link commands
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/Darwin.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Platform/Darwin.cmake b/Modules/Platform/Darwin.cmake
index 71b5f3c..1c49198 100644
--- a/Modules/Platform/Darwin.cmake
+++ b/Modules/Platform/Darwin.cmake
@@ -24,6 +24,8 @@ IF(NOT XCODE)
SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-install_name")
ENDIF(NOT XCODE)
+SET(CMAKE_C_CREATE_SHARED_LIBRARY_FORBIDDEN_FLAGS -w)
+SET(CMAKE_CXX_CREATE_SHARED_LIBRARY_FORBIDDEN_FLAGS -w)
SET(CMAKE_C_CREATE_SHARED_LIBRARY
"<CMAKE_C_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> <LINK_FLAGS> -o <TARGET> -install_name <TARGET_INSTALLNAME_DIR><TARGET_SONAME> <OBJECTS> <LINK_LIBRARIES>")
SET(CMAKE_CXX_CREATE_SHARED_LIBRARY