Skip to content

Commit

Permalink
[omniorb] Use PREPEND in vcpkg_add_to_path
Browse files Browse the repository at this point in the history
So that python from vcpkg is picked before system python
  • Loading branch information
Osyotr committed Jun 11, 2023
1 parent aae4df3 commit 4515ed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/omniorb/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ vcpkg_extract_source_archive(
${PATCHES}
)

vcpkg_add_to_path("${CURRENT_HOST_INSTALLED_DIR}/tools/python3") # port ask python distutils for info.
vcpkg_add_to_path(PREPEND "${CURRENT_HOST_INSTALLED_DIR}/tools/python3") # port ask python distutils for info.
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
set(ENV{PYTHONPATH} "${CURRENT_HOST_INSTALLED_DIR}/tools/python3/Lib${VCPKG_HOST_PATH_SEPARATOR}${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/lib/python${VCPKG_HOST_PATH_SEPARATOR}${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/lib/python")
endif()
Expand Down

0 comments on commit 4515ed9

Please sign in to comment.