From 0bfebd90dae059bc2ac56b5e7d57637b76a323a8 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Thu, 1 Aug 2019 21:49:19 +0200 Subject: [PATCH] Add CMAKE_REQUIRED_FLAGS --std=c++11 to check_cxx_source_runs --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0861a5e88..8e0cdac0f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -362,6 +362,7 @@ endif() # Check that we have sqlite3 with FTS5 if(NOT CMAKE_CROSSCOMPILING) + set(CMAKE_REQUIRED_FLAGS "--std=c++11") set(CMAKE_REQUIRED_LIBRARIES ${Qt5Core_LIBRARIES} ${Qt5Sql_LIBRARIES}) set(CMAKE_REQUIRED_INCLUDES ${Qt5Core_INCLUDE_DIRS} ${Qt5Sql_INCLUDE_DIRS}) check_cxx_source_runs("