Removed checking of CMAKE_SYSTEM_PROCESSOR when adding -fPIC, breaks when that var...
authorCyberunner23 <narutoxela@gmail.com>
Sun, 15 Mar 2015 22:08:32 +0000 (18:08 -0400)
committerCyberunner23 <narutoxela@gmail.com>
Sun, 15 Mar 2015 22:08:32 +0000 (18:08 -0400)
cmake_unofficial/CMakeLists.txt

index bb7ab5f..64c7881 100644 (file)
@@ -18,9 +18,7 @@ option(BUILD_TOOLS "Build the command line tools" ON)
 option(BUILD_LIBS  "Build the libraries in addition to the tools" OFF)
 
 if(UNIX AND BUILD_LIBS)
-    if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64")
-        add_definitions(-fPIC)
-    endif(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64")
+    add_definitions(-fPIC)
 endif()
 
 set(LZ4_DIR ../lib/)