Skip to content

Commit

Permalink
[gflags] Fix release-only build (#35373)
Browse files Browse the repository at this point in the history
  • Loading branch information
dg0yt authored Nov 29, 2023
1 parent e13d13c commit 2e70255
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion ports/gflags/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/gflags)
if(NOT VCPKG_TARGET_IS_WINDOWS)
vcpkg_fixup_pkgconfig()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/gflags.pc" "-lgflags" "-lgflags_debug")
if(NOT VCPKG_BUILD_TYPE)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/gflags.pc" "-lgflags" "-lgflags_debug")
endif()
endif()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
Expand Down
2 changes: 1 addition & 1 deletion ports/gflags/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gflags",
"version": "2.2.2",
"port-version": 8,
"port-version": 9,
"description": "A C++ library that implements commandline flags processing",
"homepage": "https://github.com/gflags/gflags",
"license": "BSD-3-Clause",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2934,7 +2934,7 @@
},
"gflags": {
"baseline": "2.2.2",
"port-version": 8
"port-version": 9
},
"ghc-filesystem": {
"baseline": "1.5.14",
Expand Down
5 changes: 5 additions & 0 deletions versions/g-/gflags.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "a5da46db14e97a98ba1469ae46d14ce80308d5a8",
"version": "2.2.2",
"port-version": 9
},
{
"git-tree": "606a0a3ad49f6e6276672e230431e6797d56180e",
"version": "2.2.2",
Expand Down

0 comments on commit 2e70255

Please sign in to comment.