[vcpkg/scripts] Teach vcpkg_add_to_path to only add the path if it is not already there
vcpkg_add_to_path should only add a path to PATH if it is not already present on PATH.
Furthermore there should be some special treatment of the PREPEND/APPEND in the case if the path is already in PATH.
Related: https://github.com/microsoft/vcpkg/pull/30396. vcpkg_host_path_list(REMOVE_DUPLICATES listvar) would remove duplicate regardless of whether they were created by vcpkg_add_to_path or by user script code.
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.