Adds immediate migration results
This commit is contained in:
2395 files changed
+357322
-2524
No files matched your search
@@ -1,12 +1,19 @@
|
||||
# Minimal Find module for Grantlee5 to allow configure to continue when not installed
|
||||
# This intentionally does not attempt to build or provide Qt5-based Grantlee
|
||||
# If a Qt6-compatible Grantlee is available, set Grantlee5_DIR or install the package
|
||||
# Find module for Grantlee5 (Qt5) / Grantlee (Qt6 compatible)
|
||||
# Grantlee 5.3.0 provides Qt6-compatible targets
|
||||
|
||||
if (TARGET Grantlee5::Templates)
|
||||
set(Grantlee5_FOUND TRUE)
|
||||
return()
|
||||
endif()
|
||||
|
||||
# Try config-mode: look for Grantlee5Config.cmake in standard locations
|
||||
# Grantlee 5.3.0 installs to /usr/local/lib/cmake/Grantlee5/
|
||||
find_package(Grantlee5 CONFIG QUIET)
|
||||
if(TARGET Grantlee5::Templates)
|
||||
set(Grantlee5_FOUND TRUE)
|
||||
return()
|
||||
endif()
|
||||
|
||||
# Try pkg-config as a best-effort (may fail)
|
||||
find_package(PkgConfig QUIET)
|
||||
if (PKG_CONFIG_FOUND)
|
||||
@@ -21,8 +28,7 @@ endif()
|
||||
# Try config-mode: look for Grantlee5Config.cmake in CMAKE_PREFIX_PATH or installed location
|
||||
# Try to locate Grantlee5Config.cmake via common locations: CMAKE_PREFIX_PATH, EXTERNAL_DIR, repo/external, and typical install paths
|
||||
find_file(_Grantlee5Config NAMES Grantlee5Config.cmake
|
||||
PATHS ${CMAKE_PREFIX_PATH} $ENV{EXTERNAL_DIR} /repo/external /repo/external/grantlee
|
||||
NO_DEFAULT_PATH
|
||||
PATHS ${CMAKE_PREFIX_PATH} $ENV{EXTERNAL_DIR} /repo/external /repo/external/grantlee /usr/local/lib/cmake/Grantlee5
|
||||
PATH_SUFFIXES Grantlee5 lib/cmake/Grantlee5)
|
||||
if(_Grantlee5Config)
|
||||
include(${_Grantlee5Config})
|
||||
|
||||
Reference in new issue
Block a user