crossplatform add to path (#6961)

This commit is contained in:
Igor Kostenko 2019-06-19 20:04:53 +01:00 committed by Robert Schumacher
parent e5b92a3911
commit 5ef4940c2c

View File

@ -37,7 +37,7 @@ function(qt_modular_build_library SOURCE_PATH)
#Find Python and add it to the path
vcpkg_find_acquire_program(PYTHON2)
get_filename_component(PYTHON2_EXE_PATH ${PYTHON2} DIRECTORY)
set(ENV{PATH} "${PYTHON2_EXE_PATH};$ENV{PATH}")
vcpkg_add_to_path("${PYTHON2_EXE_PATH}")
file(TO_NATIVE_PATH "${CURRENT_INSTALLED_DIR}" NATIVE_INSTALLED_DIR)
file(TO_NATIVE_PATH "${CURRENT_PACKAGES_DIR}" NATIVE_PACKAGES_DIR)