mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 11:41:36 +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
|
||||
database BUILD_PROJ_DATABASE
|
||||
)
|
||||
|
||||
if ("database" IN_LIST FEATURES)
|
||||
if (VCPKG_TARGET_IS_WINDOWS)
|
||||
set(BIN_SUFFIX .exe)
|
||||
if (VCPKG_TARGET_ARCHITECTURE STREQUAL arm)
|
||||
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()
|
||||
if (EXISTS ${CURRENT_INSTALLED_DIR}/../x86-windows/tools/sqlite3.exe)
|
||||
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))
|
||||
if (NOT EXISTS ${CURRENT_INSTALLED_DIR}/../x64-windows/tools/sqlite3.exe)
|
||||
message(FATAL_ERROR "Proj4 database need to install sqlite3[tool]:x64-windows first.")
|
||||
endif()
|
||||
elseif (EXISTS ${CURRENT_INSTALLED_DIR}/../x86-windows-static/tools/sqlite3.exe)
|
||||
set(SQLITE3_BIN_PATH ${CURRENT_INSTALLED_DIR}/../x86-windows-static/tools)
|
||||
elseif (EXISTS ${CURRENT_INSTALLED_DIR}/../x64-windows/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/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()
|
||||
set(SQLITE3_BIN_PATH ${CURRENT_INSTALLED_DIR}/tools)
|
||||
message(FATAL_ERROR "Proj4 database need to install sqlite3[tool]:x86-windows first.")
|
||||
endif()
|
||||
else()
|
||||
set(BIN_SUFFIX)
|
||||
|
Loading…
x
Reference in New Issue
Block a user