Skip to content

Commit

Permalink
vcpkg bugfix debug target export relocation (#26)
Browse files Browse the repository at this point in the history
#25

Fixes #25
  • Loading branch information
SchaichAlonso authored Aug 22, 2023
1 parent 18b8c91 commit db8b455
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Merge release and debug CMake targets and configs to support multiconfig generators.
# 1. Fix ${_IMPORT_PREFIX} of IMPORTED_IMPLIB_DEBUG and IMPORTED_LOCATION_DEBUG
# in auto-generated debug target
# 2. Move /debug/share/cmake/TinyOrm/*[Tt]argets-debug.cmake to /share/cmake/${PORT}/
# 2. Move /debug/share/cmake/TinyOrm/*[Tt]argets-debug.cmake to /share/cmake/${TinyOrm_ns}/
function(tiny_cmake_config_fixup)

set(TinyOrm_ns TinyOrm)
set(debug_cmake "${CURRENT_PACKAGES_DIR}/debug/share/cmake/${TinyOrm_ns}")
set(release_cmake "${CURRENT_PACKAGES_DIR}/share/cmake/${PORT}")
set(release_cmake "${CURRENT_PACKAGES_DIR}/share/cmake/${TinyOrm_ns}")

file(GLOB debug_targets "${debug_cmake}/*[Tt]argets-debug.cmake")

Expand Down
4 changes: 2 additions & 2 deletions cmake/vcpkg/ports/tinyorm/cmake/tiny_cmake_config_fixup.cmake
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Merge release and debug CMake targets and configs to support multiconfig generators.
# 1. Fix ${_IMPORT_PREFIX} of IMPORTED_IMPLIB_DEBUG and IMPORTED_LOCATION_DEBUG
# in auto-generated debug target
# 2. Move /debug/share/cmake/TinyOrm/*[Tt]argets-debug.cmake to /share/cmake/${PORT}/
# 2. Move /debug/share/cmake/TinyOrm/*[Tt]argets-debug.cmake to /share/cmake/${TinyOrm_ns}/
function(tiny_cmake_config_fixup)

set(TinyOrm_ns TinyOrm)
set(debug_cmake "${CURRENT_PACKAGES_DIR}/debug/share/cmake/${TinyOrm_ns}")
set(release_cmake "${CURRENT_PACKAGES_DIR}/share/cmake/${PORT}")
set(release_cmake "${CURRENT_PACKAGES_DIR}/share/cmake/${TinyOrm_ns}")

file(GLOB debug_targets "${debug_cmake}/*[Tt]argets-debug.cmake")

Expand Down

0 comments on commit db8b455

Please sign in to comment.