Fix cross-compilation against Poco pre-built (#2599) (#2679)

* Use ZLIB and PCRE imported target to improve portability
* Set EXPAT and SQLite3 library for XML and SQL if POCO_UNBUNDLED is true in cmake build
This commit is contained in:
Joerg-Christian Boehme
2019-04-22 23:47:11 +02:00
committed by GitHub
parent 02d5743a4b
commit e1435a6620
13 changed files with 301 additions and 129 deletions

View File

@@ -1,4 +1,11 @@
include(CMakeFindDependencyMacro)
find_dependency(PocoFoundation)
find_dependency(PocoData)
if(@POCO_UNBUNDLED@)
if(CMAKE_VERSION VERSION_LESS "3.14")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/V313")
endif()
find_dependency(SQLite3 REQUIRED)
endif()
include("${CMAKE_CURRENT_LIST_DIR}/PocoDataSQLiteTargets.cmake")