aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2014-01-16 08:01:35 +0200
committerPetri Lehtinen <petri@digip.org>2014-01-16 08:03:05 +0200
commitb21cd65d305f04b52c3c7cb1a33c63a2b1d7ad28 (patch)
treec143629b7a853c7c80b594ab924573123aff7073 /CMakeLists.txt
parentc89638d73c0a5bec600ea6e583e881181b94d545 (diff)
downloadjansson-b21cd65d305f04b52c3c7cb1a33c63a2b1d7ad28.zip
jansson-b21cd65d305f04b52c3c7cb1a33c63a2b1d7ad28.tar.gz
jansson-b21cd65d305f04b52c3c7cb1a33c63a2b1d7ad28.tar.bz2
Fix CMake build flags for MinGW
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 446ec6e..08c1666 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -102,7 +102,7 @@ if (MSVC)
endif()
-if (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")
endif()
@@ -415,7 +415,7 @@ if (NOT WITHOUT_TESTS)
# Test suites.
#
if (CMAKE_COMPILER_IS_GNUCC)
- add_definitions(-Wall -Wextra -Wdeclaration-after-statement -Werror)
+ add_definitions(-Wall -Wextra -Wdeclaration-after-statement)
endif ()
set(api_tests