[CMake] fix building with zero plugins

[Cmake] fix null plugins

fix null
This commit is contained in:
Mathis Logemann 2021-11-15 00:50:47 +01:00
parent 7a7a8125a9
commit fbb0ae1489

View file

@ -52,6 +52,8 @@ endif()
# Copy all plugin dlls, so that these are in the main output dir, since cmake copies those into ${MAPNIK_OUTPUT_DIR}/plugins/input, too.
#
if(WIN32)
list(LENGTH m_build_plugins m_number_plugins)
if(m_number_plugins GREATER 0)
string(CONFIGURE
[[
file(GLOB m_deps "./*.dll")
@ -69,3 +71,4 @@ if(WIN32)
)
add_dependencies(copy_plugin_dependencies ${m_build_plugins})
endif()
endif()