Don't use check_cxx_source_runs when cross-compiling
This commit is contained in:
@@ -361,9 +361,9 @@ endif()
|
|||||||
|
|
||||||
# Check that we have sqlite3 with FTS5
|
# Check that we have sqlite3 with FTS5
|
||||||
|
|
||||||
|
if(NOT CMAKE_CROSSCOMPILING)
|
||||||
set(CMAKE_REQUIRED_LIBRARIES ${Qt5Core_LIBRARIES} ${Qt5Sql_LIBRARIES})
|
set(CMAKE_REQUIRED_LIBRARIES ${Qt5Core_LIBRARIES} ${Qt5Sql_LIBRARIES})
|
||||||
set(CMAKE_REQUIRED_INCLUDES ${Qt5Core_INCLUDE_DIRS} ${Qt5Sql_INCLUDE_DIRS})
|
set(CMAKE_REQUIRED_INCLUDES ${Qt5Core_INCLUDE_DIRS} ${Qt5Sql_INCLUDE_DIRS})
|
||||||
|
|
||||||
check_cxx_source_runs("
|
check_cxx_source_runs("
|
||||||
#include <QSqlDatabase>
|
#include <QSqlDatabase>
|
||||||
#include <QSqlQuery>
|
#include <QSqlQuery>
|
||||||
@@ -378,6 +378,7 @@ check_cxx_source_runs("
|
|||||||
"
|
"
|
||||||
SQLITE3_FTS5
|
SQLITE3_FTS5
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(HAVE_XINE)
|
if(HAVE_XINE)
|
||||||
check_cxx_source_compiles("
|
check_cxx_source_compiles("
|
||||||
|
|||||||
Reference in New Issue
Block a user