mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
Do not require pkgconfig
This commit is contained in:
parent
f67e339845
commit
1b5794302d
@ -7,15 +7,18 @@
|
|||||||
# CMake module to search for SpatiaLite library
|
# CMake module to search for SpatiaLite library
|
||||||
#
|
#
|
||||||
# If it's found it sets SPATIALITE_FOUND to TRUE
|
# If it's found it sets SPATIALITE_FOUND to TRUE
|
||||||
# and following variables are set:
|
# and adds the following target
|
||||||
# SPATIALITE_INCLUDE_DIR
|
#
|
||||||
# SPATIALITE_LIBRARY
|
# spatialite::spatialite
|
||||||
|
|
||||||
find_package(PkgConfig REQUIRED)
|
find_package(PkgConfig)
|
||||||
pkg_search_module(PC_SPATIALITE IMPORTED_TARGET spatialite)
|
if(PkgConfig_FOUND)
|
||||||
|
pkg_search_module(PC_SPATIALITE IMPORTED_TARGET spatialite)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(PC_SPATIALITE_FOUND)
|
if(PC_SPATIALITE_FOUND)
|
||||||
add_library(spatialite::spatialite ALIAS PkgConfig::PC_SPATIALITE)
|
add_library(spatialite::spatialite ALIAS PkgConfig::PC_SPATIALITE)
|
||||||
|
set(SPATIALITE_FOUND TRUE)
|
||||||
else()
|
else()
|
||||||
# This macro checks if the symbol exists
|
# This macro checks if the symbol exists
|
||||||
include(CheckLibraryExists)
|
include(CheckLibraryExists)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user