Skip to content

Commit

Permalink
cmake: fix for fPIC in CMake 2.8.8-
Browse files Browse the repository at this point in the history
  • Loading branch information
awakecoding committed Oct 11, 2012
1 parent 8b70615 commit cebea55
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Expand Up @@ -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)

This comment has been minimized.

Copy link
@Shumen

Shumen Oct 13, 2012

I installed official CMake 2.8.8, and failed to test on CentOS 6.2, which means this condition won't work for 2.8.8, I think the version should less 2.8.9 at least.

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
endif()
endif()

if(MSVC)
Expand Down

0 comments on commit cebea55

Please sign in to comment.