diff --git a/CMakeLists.txt b/CMakeLists.txt index d0c2f6d1af62e3b5d5e932dad7051ac9a8554f9b..2746f8b6dc446685349169ec60e9cde9dca70cdc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,7 @@ if(WIN32) set(CMAKE_GENERATOR_TOOLSET "v110" CACHE STRING "Platform Toolset" FORCE) include(ChooseMSVCCRT.cmake) elseif(UNIX) + add_definitions(-fPIC) else(WIN32) message("unkown platform") endif(WIN32)