[nanodbc] Fix link error 2019 (#9185)

This commit is contained in:
Lily 2019-12-21 04:23:33 +08:00 committed by dan-shaw
parent 0548f8a50c
commit 0173bf09bd
2 changed files with 3 additions and 5 deletions

View File

@ -1,4 +1,4 @@
Source: nanodbc Source: nanodbc
Version: 2.12.4-4 Version: 2.12.4-5
Homepage: https://github.com/lexicalunit/nanodbc Homepage: https://github.com/lexicalunit/nanodbc
Description: A small C++ wrapper for the native C ODBC API. Description: A small C++ wrapper for the native C ODBC API.

View File

@ -1,5 +1,3 @@
include(vcpkg_common_functions)
# Only static libraries are supported. # Only static libraries are supported.
# See https://github.com/nanodbc/nanodbc/issues/13 # See https://github.com/nanodbc/nanodbc/issues/13
vcpkg_check_linkage(ONLY_STATIC_LIBRARY) vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
@ -23,7 +21,7 @@ vcpkg_configure_cmake(
# /Legacy # /Legacy
-DNANODBC_DISABLE_EXAMPLES=ON -DNANODBC_DISABLE_EXAMPLES=ON
-DNANODBC_DISABLE_TESTS=ON -DNANODBC_DISABLE_TESTS=ON
-DNANODBC_ENABLE_UNICODE=ON -DNANODBC_ENABLE_UNICODE=OFF
) )
vcpkg_install_cmake() vcpkg_install_cmake()
@ -33,4 +31,4 @@ if(EXISTS ${CURRENT_PACKAGES_DIR}/cmake)
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake) vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
endif() endif()
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/nanodbc RENAME copyright) file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)