this fixes a bug when including a package via pkg-config:
We will append the call to the config file to find the package via find_package. However this does not work when the package was included with pkg-config
This commit is contained in:
parent
282986c503
commit
199fd8218b
1 changed files with 8 additions and 4 deletions
|
@ -16,10 +16,14 @@ endmacro()
|
||||||
|
|
||||||
macro(mapnik_find_package)
|
macro(mapnik_find_package)
|
||||||
find_package(${ARGN})
|
find_package(${ARGN})
|
||||||
|
if(${ARGV0}_FOUND)
|
||||||
set(MAPNIK_TMP_DEP ${ARGN})
|
set(MAPNIK_TMP_DEP ${ARGN})
|
||||||
list(JOIN MAPNIK_TMP_DEP " " MAPNIK_TMP_DEP)
|
list(JOIN MAPNIK_TMP_DEP " " MAPNIK_TMP_DEP)
|
||||||
list(APPEND MAPNIK_DEPENDENCIES "find_dependency(${MAPNIK_TMP_DEP})")
|
list(APPEND MAPNIK_DEPENDENCIES "find_dependency(${MAPNIK_TMP_DEP})")
|
||||||
mapnik_print_version(${ARGV0})
|
mapnik_print_version(${ARGV0})
|
||||||
|
else()
|
||||||
|
message(STATUS "not found: ${ARGV0}")
|
||||||
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
macro(mapnik_find_threads)
|
macro(mapnik_find_threads)
|
||||||
|
|
Loading…
Reference in a new issue