diff --git a/ports/qt5-mqtt/portfile.cmake b/ports/qt5-mqtt/portfile.cmake index e9b8c3c75..7ccdf913f 100644 --- a/ports/qt5-mqtt/portfile.cmake +++ b/ports/qt5-mqtt/portfile.cmake @@ -16,6 +16,6 @@ file(WRITE "${SOURCE_PATH}/.git" "repocontent") # syncqt is a PERL script vcpkg_find_acquire_program(PERL) get_filename_component(PERL_EXE_PATH ${PERL} DIRECTORY) -set(ENV{PATH} "${PERL_EXE_PATH};$ENV{PATH}") +vcpkg_add_to_path("${PERL_EXE_PATH}") qt_modular_build_library(${SOURCE_PATH})