diff options
author | Dominik Schmidt <dev@dominik-schmidt.de> | 2018-01-04 22:46:14 +0300 |
---|---|---|
committer | Dominik Schmidt <dev@dominik-schmidt.de> | 2018-01-13 15:58:17 +0300 |
commit | da98e2aa28b98b0b467c8fc2c536137a6a8d0243 (patch) | |
tree | d6cffbce9b8dda25fe1334b58b192a8088c95301 /cmake | |
parent | 1f9763eda9db9e9aead8060f7f222e0d3f2bf1ce (diff) |
Fix building sqlite on macOS and Windows
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/Warnings.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/modules/Warnings.cmake b/cmake/modules/Warnings.cmake index 54fe9374b..f2c271e88 100644 --- a/cmake/modules/Warnings.cmake +++ b/cmake/modules/Warnings.cmake @@ -5,8 +5,10 @@ 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 + # Fix sqlite compilation on macOS set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-incompatible-pointer-types-discards-qualifiers") + # Fix sqlite compilation on MinGW + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-discarded-qualifiers") if (CMAKE_CXX_COMPILER_ID MATCHES "GNU") execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion |