diff --git a/CMakeLists.txt b/CMakeLists.txt index 91aa11a..1827da4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -105,7 +105,7 @@ if (MSVC) endif() if (NOT WIN32 AND (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)) - set(CMAKE_C_FLAGS "-fPIC") + add_definitions("-fPIC") endif() check_include_files (endian.h HAVE_ENDIAN_H)