diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c1d8e92d..d9396937e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,7 +96,7 @@ endif() # Set compiler specific flags #-------------------------------------------------------------------- if (UNIX) - add_definitions(-Wall) + add_definitions(-Wall -fPIC) if (BUILD_SHARED_LIBS) add_definitions(-fvisibility=hidden)