CMake: Use add_definitions for compiler flags

Fixes #193.
This commit is contained in:
Petri Lehtinen 2014-07-02 22:04:33 +03:00
parent df248712a5
commit 348401e7b8

View File

@ -105,7 +105,7 @@ if (MSVC)
endif() endif()
if (NOT WIN32 AND (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)) if (NOT WIN32 AND (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX))
set(CMAKE_C_FLAGS "-fPIC") add_definitions("-fPIC")
endif() endif()
check_include_files (endian.h HAVE_ENDIAN_H) check_include_files (endian.h HAVE_ENDIAN_H)