aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorJack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>2020-09-27 17:51:49 -0700
committerGitHub <noreply@github.com>2020-09-27 17:51:49 -0700
commit794f4c0a5a65bafbb1952dfb4ac32d3ba7fe225a (patch)
tree2487b89462d21389bac311015f4cc2abaae67615 /ports
parent0c810d357bf3c9d6fd76bf900d33c891822c4959 (diff)
downloadvcpkg-794f4c0a5a65bafbb1952dfb4ac32d3ba7fe225a.tar.gz
vcpkg-794f4c0a5a65bafbb1952dfb4ac32d3ba7fe225a.zip
[nanodbc] Fix vcpkg_fixup_cmake_targets CONFIG_PATH in unix (#13699)
Diffstat (limited to 'ports')
-rw-r--r--ports/nanodbc/CONTROL1
-rw-r--r--ports/nanodbc/portfile.cmake4
2 files changed, 4 insertions, 1 deletions
diff --git a/ports/nanodbc/CONTROL b/ports/nanodbc/CONTROL
index 16a8ff83b..08070ae7d 100644
--- a/ports/nanodbc/CONTROL
+++ b/ports/nanodbc/CONTROL
@@ -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)
diff --git a/ports/nanodbc/portfile.cmake b/ports/nanodbc/portfile.cmake
index c9a278a09..c020a1627 100644
--- a/ports/nanodbc/portfile.cmake
+++ b/ports/nanodbc/portfile.cmake
@@ -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)