Cross-compilation: Remove PowerShell requirement

This commit is contained in:
João Valverde 2023-05-28 17:58:22 +01:00
parent 8134009b1d
commit ca0357d764
1 changed files with 3 additions and 1 deletions

View File

@ -194,7 +194,9 @@ if(WIN32)
and CPU target ${WIRESHARK_TARGET_PROCESSOR_ARCHITECTURE}"
)
find_package(PowerShell REQUIRED)
if(NOT CMAKE_CROSSCOMPILING)
find_package(PowerShell REQUIRED)
endif()
# Determine where the 3rd party libraries will be
if(USE_REPOSITORY)