install dependencies only on windows and install plugins into correct dir

This commit is contained in:
Mathis Logemann 2021-04-22 19:41:21 +02:00
parent e1fa32f21f
commit 5a109a99fb

View file

@ -12,6 +12,8 @@ function(mapnik_install)
)
elseif(NOT ${MAPNIK_INSTALL_ALREADY_INSTALLED} AND ${MAPNIK_INSTALL_IS_PLUGIN})
install(TARGETS ${MAPNIK_INSTALL_TARGET}
LIBRARY DESTINATION ${PLUGINS_INSTALL_DIR}
ARCHIVE DESTINATION ${PLUGINS_INSTALL_DIR}
RUNTIME DESTINATION ${PLUGINS_INSTALL_DIR}
)
endif()
@ -32,7 +34,7 @@ endfunction()
function(mapnik_install_targets)
if(INSTALL_DEPENDENCIES)
if(INSTALL_DEPENDENCIES AND WIN32)
# https://cmake.org/cmake/help/latest/policy/CMP0087.html
cmake_policy(SET CMP0087 NEW)
get_property(MAPNIK_INSTALLED_TARGETS GLOBAL PROPERTY TARGETS)