From 1f12d6344b60adc830b13f3ddd0330b66178ccae Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Thu, 4 Jan 2018 19:54:56 +0100 Subject: [PATCH] Fix sqlite compilation (on OSX) --- cmake/modules/Warnings.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/modules/Warnings.cmake b/cmake/modules/Warnings.cmake index 8faff001f..54fe9374b 100644 --- a/cmake/modules/Warnings.cmake +++ b/cmake/modules/Warnings.cmake @@ -5,6 +5,9 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic -Wno-long-long -Wno-gnu-zero-variadic-macro-arguments") + # Fix sqlite compilation + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-incompatible-pointer-types-discards-qualifiers") + if (CMAKE_CXX_COMPILER_ID MATCHES "GNU") execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)