Skip to content

Commit

Permalink
[nanodbc] Fix vcpkg_fixup_cmake_targets CONFIG_PATH in unix (microsof…
Browse files Browse the repository at this point in the history
  • Loading branch information
JackBoosY authored Sep 28, 2020
1 parent 0c810d3 commit 794f4c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions ports/nanodbc/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Source: nanodbc
Version: 2.13.0
Port-Version: 1
Homepage: https://github.com/lexicalunit/nanodbc
Description: A small C++ wrapper for the native C ODBC API.
Build-Depends: unixodbc(!windows)
4 changes: 3 additions & 1 deletion ports/nanodbc/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
if(EXISTS ${CURRENT_PACKAGES_DIR}/cmake)
if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
else()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake)
endif()

file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

0 comments on commit 794f4c0

Please sign in to comment.