Skip to content

Commit

Permalink
[vcpkg-make] Fix the missing value
Browse files Browse the repository at this point in the history
  • Loading branch information
LilyWangLL committed Jan 6, 2025
1 parent 65be701 commit 5bd54ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ports/vcpkg-make/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "vcpkg-make",
"version-date": "2024-12-27",
"port-version": 1,
"documentation": "https://learn.microsoft.com/vcpkg/maintainers/functions/vcpkg_make_configure",
"license": null,
"supports": "native",
Expand Down
4 changes: 2 additions & 2 deletions ports/vcpkg-make/vcpkg_scripts.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function(z_vcpkg_set_global_property property value)
if(NOT ARGN STREQUAL "" AND NOT ARGN MATCHES "^APPEND(_STRING)?$")
message(FATAL_ERROR "'${CMAKE_CURRENT_FUNCTION}' called with invalid arguments '${ARGN}'")
endif()
set_property(GLOBAL ${ARGN} PROPERTY "z_vcpkg_global_property_${property}" ${value})
set_property(GLOBAL ${ARGN} PROPERTY "z_vcpkg_global_property_${property}" "${value}")
endfunction()

function(z_vcpkg_get_global_property outvar property)
Expand Down Expand Up @@ -171,7 +171,7 @@ function(vcpkg_restore_pkgconfig)
if(has_backup)
z_vcpkg_get_global_property(backup "make-pkg-config-backup-${envvar}")
set("ENV{${envvar}}" "${backup}")
z_vcpkg_set_global_property("make-pkg-config-backup-${envvar}")
z_vcpkg_set_global_property("make-pkg-config-backup-${envvar}" "$ENV{${envvar}}")
else()
unset("ENV{${envvar}}")
endif()
Expand Down

0 comments on commit 5bd54ee

Please sign in to comment.