Skip to content

Commit

Permalink
[vcpkg] Fix vcpkg_fixup_cmake_targets to work correctly on MinGW (mic…
Browse files Browse the repository at this point in the history
…rosoft#12104)

* [vcpkg] Fix vcpkg_fixup_cmake_targets to work correctly on MinGW

* [akali] Bump version to test vcpkg_fixup_cmake_targets changes

* Update ports/akali/CONTROL

Co-authored-by: Jack·Boos·Yu <[email protected]>
  • Loading branch information
koprok and JackBoosY authored Jul 31, 2020
1 parent f533327 commit e2cdd07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 2 additions & 1 deletion ports/akali/CONTROL
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Source: akali
Version: 1.41
Port-Version: 1
Description: C++ Common Library.
Homepage: https://github.com/winsoft666/akali
Homepage: https://github.com/winsoft666/akali
6 changes: 1 addition & 5 deletions scripts/cmake/vcpkg_fixup_cmake_targets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@ function(vcpkg_fixup_cmake_targets)
set(_vfct_TARGET_PATH share/${PORT})
endif()

if(NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
set(EXECUTABLE_SUFFIX "\\.exe")
else()
set(EXECUTABLE_SUFFIX)
endif()
string(REPLACE "." "\\." EXECUTABLE_SUFFIX "${VCPKG_TARGET_EXECUTABLE_SUFFIX}")

set(DEBUG_SHARE ${CURRENT_PACKAGES_DIR}/debug/${_vfct_TARGET_PATH})
set(RELEASE_SHARE ${CURRENT_PACKAGES_DIR}/${_vfct_TARGET_PATH})
Expand Down

0 comments on commit e2cdd07

Please sign in to comment.