mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-01 13:37:55 +08:00
[proj4] Fix the feature database judgment (#8763)
* [proj4]Fix the feature database judgment. * [proj4]Re-fix sqlite tool judgment.
This commit is contained in:
parent
2523a19f70
commit
90114a0e2e
@ -22,22 +22,19 @@ endif()
|
|||||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||||
database BUILD_PROJ_DATABASE
|
database BUILD_PROJ_DATABASE
|
||||||
)
|
)
|
||||||
|
|
||||||
if ("database" IN_LIST FEATURES)
|
if ("database" IN_LIST FEATURES)
|
||||||
if (VCPKG_TARGET_IS_WINDOWS)
|
if (VCPKG_TARGET_IS_WINDOWS)
|
||||||
set(BIN_SUFFIX .exe)
|
set(BIN_SUFFIX .exe)
|
||||||
if (VCPKG_TARGET_ARCHITECTURE STREQUAL arm)
|
if (EXISTS ${CURRENT_INSTALLED_DIR}/../x86-windows/tools/sqlite3.exe)
|
||||||
if (NOT EXISTS ${CURRENT_INSTALLED_DIR}/../x86-windows/tools/sqlite3.exe)
|
|
||||||
message(FATAL_ERROR "Proj4 database need to install sqlite3[tool]:x86-windows first.")
|
|
||||||
endif()
|
|
||||||
set(SQLITE3_BIN_PATH ${CURRENT_INSTALLED_DIR}/../x86-windows/tools)
|
set(SQLITE3_BIN_PATH ${CURRENT_INSTALLED_DIR}/../x86-windows/tools)
|
||||||
elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL arm64 OR (VCPKG_TARGET_ARCHITECTURE STREQUAL x64 AND VCPKG_LIBRARY_LINKAGE STREQUAL dynamic))
|
elseif (EXISTS ${CURRENT_INSTALLED_DIR}/../x86-windows-static/tools/sqlite3.exe)
|
||||||
if (NOT EXISTS ${CURRENT_INSTALLED_DIR}/../x64-windows/tools/sqlite3.exe)
|
set(SQLITE3_BIN_PATH ${CURRENT_INSTALLED_DIR}/../x86-windows-static/tools)
|
||||||
message(FATAL_ERROR "Proj4 database need to install sqlite3[tool]:x64-windows first.")
|
elseif (EXISTS ${CURRENT_INSTALLED_DIR}/../x64-windows/tools/sqlite3.exe AND (NOT CMAKE_HOST_SYSTEM_PROCESSOR OR CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64"))
|
||||||
endif()
|
|
||||||
set(SQLITE3_BIN_PATH ${CURRENT_INSTALLED_DIR}/../x64-windows/tools)
|
set(SQLITE3_BIN_PATH ${CURRENT_INSTALLED_DIR}/../x64-windows/tools)
|
||||||
|
elseif (EXISTS ${CURRENT_INSTALLED_DIR}/../x64-windows-static/tools/sqlite3.exe AND (NOT CMAKE_HOST_SYSTEM_PROCESSOR OR CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64"))
|
||||||
|
set(SQLITE3_BIN_PATH ${CURRENT_INSTALLED_DIR}/../x64-windows-static/tools)
|
||||||
else()
|
else()
|
||||||
set(SQLITE3_BIN_PATH ${CURRENT_INSTALLED_DIR}/tools)
|
message(FATAL_ERROR "Proj4 database need to install sqlite3[tool]:x86-windows first.")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
set(BIN_SUFFIX)
|
set(BIN_SUFFIX)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user