From 630c67f7d0dbef3520b10cea5e36656efb8a24f6 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Thu, 17 Dec 2020 19:47:46 +0100 Subject: [PATCH] Remove -U__STRICT_ANSI__ from compile flags --- CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d347a8280..41027633d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,9 +36,8 @@ set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) list(APPEND COMPILE_OPTIONS - $<$:--std=c99> - $<$:--std=c++17> - -U__STRICT_ANSI__ + $<$:-std=c99> + $<$:-std=c++17> -Wall -Wextra -Wpedantic @@ -400,7 +399,7 @@ endif(USE_BUNDLE AND NOT USE_BUNDLE_DIR) # Check that we have sqlite3 with FTS5 if(NOT CMAKE_CROSSCOMPILING) - set(CMAKE_REQUIRED_FLAGS "--std=c++17") + set(CMAKE_REQUIRED_FLAGS "-std=c++17") set(CMAKE_REQUIRED_LIBRARIES ${QtCore_LIBRARIES} ${QtSql_LIBRARIES}) check_cxx_source_runs(" #include