From 99119be0b78907441281e6abb50c8e153f3240ae Mon Sep 17 00:00:00 2001 From: Alexandre Bouvier Date: Mon, 31 Jul 2023 04:05:59 +0000 Subject: [PATCH] cmake: respect semantic versioning --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e808fa80..ce69dfda 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -363,7 +363,7 @@ if (FMT_INSTALL) write_basic_package_version_file( ${version_config} VERSION ${FMT_VERSION} - COMPATIBILITY AnyNewerVersion) + COMPATIBILITY SameMajorVersion) join_paths(libdir_for_pc_file "\${exec_prefix}" "${FMT_LIB_DIR}") join_paths(includedir_for_pc_file "\${prefix}" "${FMT_INC_DIR}")