mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
Fix configuration error while cross compiling (#3127)
During the configuration phase in a cross compilation scenario, `include(InstallRequiredSystemLibraries)` fails even if `MSVC_REDIST_DIR` is provided. This should not be an hard error, in case someone wants to compile/use the library, and not package it. As explained on https://reviews.llvm.org/D41220, the most sensible fix is to include `InstallRequiredSystemLibraries` only on a Windows host.
This commit is contained in:
parent
dd0dc49b56
commit
ff64d516a4
@ -407,7 +407,9 @@ add_custom_target(uninstall
|
|||||||
#############################################################
|
#############################################################
|
||||||
# Enable packaging
|
# Enable packaging
|
||||||
|
|
||||||
include(InstallRequiredSystemLibraries)
|
if (CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
|
||||||
|
include(InstallRequiredSystemLibraries)
|
||||||
|
endif()
|
||||||
|
|
||||||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Poco Libraries")
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Poco Libraries")
|
||||||
set(CPACK_PACKAGE_VENDOR "Applied Informatics Software Engineering GmbH")
|
set(CPACK_PACKAGE_VENDOR "Applied Informatics Software Engineering GmbH")
|
||||||
|
Loading…
Reference in New Issue
Block a user