diff options
author | Petri Lehtinen <petri@digip.org> | 2014-07-02 22:04:33 +0300 |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2014-07-02 22:04:34 +0300 |
commit | 348401e7b8a769a772b3eb26d9edca3564261f21 (patch) | |
tree | d0e4f95ccabdb97cb877b9626b4cf749068d9764 /CMakeLists.txt | |
parent | df248712a5d982b0721b6e8d15b09d4a9264301e (diff) | |
download | jansson-348401e7b8a769a772b3eb26d9edca3564261f21.zip jansson-348401e7b8a769a772b3eb26d9edca3564261f21.tar.gz jansson-348401e7b8a769a772b3eb26d9edca3564261f21.tar.bz2 |
CMake: Use add_definitions for compiler flags
Fixes #193.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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) |