mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
b2b5bd8f65
[sqlitecpp] update to 3.3.1
41 lines
1.4 KiB
CMake
41 lines
1.4 KiB
CMake
vcpkg_from_github(OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO "SRombauts/SQLiteCpp"
|
|
REF ${VERSION}
|
|
HEAD_REF master
|
|
SHA512 08a42ef2495b65e8565569842b40882aff91a3bf1887f09b5b2f2950ae4e16ef927809e7ff9870ffcf143bc187bb3eea5c3f2e4881943144e8cb6e1605ba71ce
|
|
PATCHES
|
|
fix_dependency.patch
|
|
add_runtime_destination.patch
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
sqlcipher SQLITE_HAS_CODEC
|
|
)
|
|
|
|
set(USE_STACK_PROTECTION "")
|
|
if(VCPKG_TARGET_IS_MINGW)
|
|
set(USE_STACK_PROTECTION "-DSQLITECPP_USE_STACK_PROTECTION=OFF")
|
|
endif()
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
${FEATURE_OPTIONS}
|
|
-DSQLITECPP_RUN_CPPLINT=OFF
|
|
-DSQLITECPP_RUN_CPPCHECK=OFF
|
|
-DSQLITECPP_INTERNAL_SQLITE=OFF
|
|
-DSQLITE_ENABLE_COLUMN_METADATA=ON
|
|
-DSQLITECPP_USE_STATIC_RUNTIME=OFF # unconditionally off because vcpkg's toolchains already do the right thing
|
|
# See https://github.com/SRombauts/SQLiteCpp/blob/e74403264ec7093060f4ed0e84bc9208997c8344/CMakeLists.txt#L40-L46
|
|
${USE_STACK_PROTECTION}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/SQLiteCpp)
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|