summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-10-18 17:25:54 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-10-18 17:25:54 (GMT)
commit37dc4bdc6e96ac66c0c95c3c977498a502604fe1 (patch)
treed2ff2b1c5270e171e9d445bebdf00683027965f4
parent8a5bb25614e2ace031dae76acbc1c731cfcb12f8 (diff)
downloadCMake-37dc4bdc6e96ac66c0c95c3c977498a502604fe1.zip
CMake-37dc4bdc6e96ac66c0c95c3c977498a502604fe1.tar.gz
CMake-37dc4bdc6e96ac66c0c95c3c977498a502604fe1.tar.bz2
COMP: On mingw, -fPIC is not necessary and it actually produces warnings
-rw-r--r--Modules/Platform/Windows-gcc.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Platform/Windows-gcc.cmake b/Modules/Platform/Windows-gcc.cmake
index 7ab664b..3fb8186 100644
--- a/Modules/Platform/Windows-gcc.cmake
+++ b/Modules/Platform/Windows-gcc.cmake
@@ -7,6 +7,7 @@ SET(CMAKE_SHARED_MODULE_PREFIX "lib") # lib
SET(CMAKE_SHARED_MODULE_SUFFIX ".dll") # .so
SET(CMAKE_DL_LIBS "")
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "") # -pic
+SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "") # -pic
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared") # -shared
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") # +s, flag for exe link to use shared lib
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "") # -rpath