diff --git a/CMakeLists.txt b/CMakeLists.txt index 8313307..2687d87 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,7 @@ else() endif() if(UNIX ) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64 -fPIC") endif() set_property(GLOBAL PROPERTY USE_FOLDERS ON)