[Cmake-commits] [cmake-commits] king committed Windows-GNU.cmake 1.1 1.2

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Feb 19 08:23:35 EST 2010


Update of /cvsroot/CMake/CMake/Modules/Platform
In directory public:/mounts/ram/cvs-serv23767/Modules/Platform

Modified Files:
	Windows-GNU.cmake 
Log Message:
Suppress GNU flag -fPIC on Windows

Commit "Modernize GNU compiler info on Windows" (2009-12-02) reorganized
GNU flags on Windows but let -fPIC slip through for compilation of
objects in shared libraries.  While this flag is valid on most GNU
compiler platforms we need to suppress it in Windows-GNU.cmake just as
we already do in CYGWIN-GNU.cmake.


Index: Windows-GNU.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/Windows-GNU.cmake,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** Windows-GNU.cmake	2 Dec 2009 16:27:59 -0000	1.1
--- Windows-GNU.cmake	19 Feb 2010 13:23:31 -0000	1.2
***************
*** 68,71 ****
--- 68,73 ----
    endif()
  
+   set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "") # No -fPIC on Windows
+ 
    # Binary link rules.
    set(CMAKE_${lang}_CREATE_SHARED_MODULE



More information about the Cmake-commits mailing list