mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
Fix CMake package version compatibility checking
We're compatible across minor versions, only the major version change would mean incompatibility. This way for example find_package(Slint 1.6.0) will work with newer versions and makes it a minimum version specifier.
This commit is contained in:
parent
504f87a212
commit
40faf0e1c4
1 changed files with 1 additions and 1 deletions
|
@ -440,7 +440,7 @@ if(SLINT_BUILD_RUNTIME)
|
|||
write_basic_package_version_file(
|
||||
${CMAKE_CURRENT_BINARY_DIR}/lib/cmake/Slint/SlintConfigVersion.cmake
|
||||
VERSION ${PROJECT_VERSION}
|
||||
COMPATIBILITY SameMinorVersion
|
||||
COMPATIBILITY SameMajorVersion
|
||||
)
|
||||
|
||||
install(FILES
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue