From bc62b53b3823c649dd163d0ca6bc23f025e00b48 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Thu, 23 May 2024 18:41:04 +0200 Subject: [PATCH] Fix issue #8192 --- Installation/lib/cmake/CGAL/CGALConfigVersion.cmake | 6 +----- Installation/test/Installation/CMakeLists.txt | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Installation/lib/cmake/CGAL/CGALConfigVersion.cmake b/Installation/lib/cmake/CGAL/CGALConfigVersion.cmake index 2687e75956e..70ac7a58549 100644 --- a/Installation/lib/cmake/CGAL/CGALConfigVersion.cmake +++ b/Installation/lib/cmake/CGAL/CGALConfigVersion.cmake @@ -16,11 +16,7 @@ set(PACKAGE_VERSION ${CGAL_CREATED_VERSION_NUM}) if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION) set(PACKAGE_VERSION_COMPATIBLE FALSE) else() - if(PACKAGE_FIND_VERSION_MAJOR STREQUAL CGAL_MAJOR_VERSION) - set(PACKAGE_VERSION_COMPATIBLE TRUE) - else() - set(PACKAGE_VERSION_COMPATIBLE FALSE) - endif() + set(PACKAGE_VERSION_COMPATIBLE TRUE) if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION) set(PACKAGE_VERSION_EXACT TRUE) endif() diff --git a/Installation/test/Installation/CMakeLists.txt b/Installation/test/Installation/CMakeLists.txt index 08c65231fb5..a38b9d6785d 100644 --- a/Installation/test/Installation/CMakeLists.txt +++ b/Installation/test/Installation/CMakeLists.txt @@ -120,7 +120,6 @@ CGAL_installation_test_find_package_version(fail-exact) set_tests_properties( test_find_package_version_greater - test_find_package_version_less_major test_find_package_version_fail-exact PROPERTIES WILL_FAIL TRUE)