cmake: fix for fPIC in CMake 2.8.8-

This commit is contained in:
Marc-André Moreau 2012-10-11 08:30:04 -04:00
parent 8b70615b30
commit cebea5590a

View File

@ -100,6 +100,9 @@ if(CMAKE_COMPILER_IS_GNUCC)
if(WITH_SSE2_TARGET)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse2")
endif()
if(${CMAKE_VERSION} VERSION_LESS 2.8.8)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
endif()
endif()
if(MSVC)