[Orxonox-commit 3356] r8044 - code/branches/mac_osx/cmake
rgrieder at orxonox.net
rgrieder at orxonox.net
Tue Mar 8 06:27:07 CET 2011
Author: rgrieder
Date: 2011-03-08 06:27:07 +0100 (Tue, 08 Mar 2011)
New Revision: 8044
Modified:
code/branches/mac_osx/cmake/CompilerConfigGCC.cmake
Log:
No -fpic on MinGW 64 bit.
Modified: code/branches/mac_osx/cmake/CompilerConfigGCC.cmake
===================================================================
--- code/branches/mac_osx/cmake/CompilerConfigGCC.cmake 2011-03-08 05:26:51 UTC (rev 8043)
+++ code/branches/mac_osx/cmake/CompilerConfigGCC.cmake 2011-03-08 05:27:07 UTC (rev 8044)
@@ -64,8 +64,7 @@
ADD_COMPILER_FLAGS("-Os" MinSizeRel CACHE)
# CMake doesn't seem to set the PIC flags right on certain 64 bit systems
-# Todo: MinGW too?
-IF(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
+IF(NOT MINGW AND ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
ADD_COMPILER_FLAGS("-fPIC" CACHE)
ENDIF()
More information about the Orxonox-commit
mailing list