2021-03-25 21:28:41 +01:00
|
|
|
macro(mapnik_print_version)
|
|
|
|
string(TOUPPER ${ARGV0} TLNUP)
|
|
|
|
set(TLN ${ARGV0})
|
|
|
|
if(${TLN}_VERSION_STRING)
|
|
|
|
message(STATUS "Using ${ARGV0} version: ${${TLN}_VERSION_STRING}")
|
|
|
|
elseif(${TLN}_VERSION)
|
|
|
|
message(STATUS "Using ${ARGV0} version: ${${TLN}_VERSION}")
|
|
|
|
elseif(${TLNUP}_VERSION_STRING)
|
|
|
|
message(STATUS "Using ${ARGV0} version: ${${TLNUP}_VERSION_STRING}")
|
|
|
|
elseif(${TLNUP}_VERSION)
|
|
|
|
message(STATUS "Using ${ARGV0} version: ${${TLNUP}_VERSION}")
|
|
|
|
else()
|
|
|
|
message(STATUS "Using ${ARGV0}")
|
|
|
|
endif()
|
|
|
|
endmacro()
|
|
|
|
|
2021-03-17 22:18:21 +01:00
|
|
|
macro(mapnik_find_package)
|
|
|
|
find_package(${ARGN})
|
|
|
|
set(MAPNIK_TMP_DEP ${ARGN})
|
|
|
|
list(JOIN MAPNIK_TMP_DEP " " MAPNIK_TMP_DEP)
|
|
|
|
list(APPEND MAPNIK_DEPENDENCIES "find_dependency(${MAPNIK_TMP_DEP})")
|
2021-03-25 21:28:41 +01:00
|
|
|
mapnik_print_version(${ARGV0})
|
2021-03-17 22:18:21 +01:00
|
|
|
endmacro()
|