Skip to content

Commit

Permalink
Fix CMake package version compatibility checking
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tronical committed Oct 16, 2024
1 parent 504f87a commit 40faf0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 40faf0e

Please sign in to comment.