Skip to content

Commit

Permalink
CMake: generate CMake files compatible with any newer version.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny authored Dec 9, 2024
2 parents 413dda7 + b53f3cd commit 019d1dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ configure_package_config_file(${CONFIG_CMAKE_IN_FILE} ${CONFIG_CMAKE_FILE}
set(CONFIG_VERSION_CMAKE_FILE ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}ConfigVersion.cmake)

write_basic_package_version_file(${CONFIG_VERSION_CMAKE_FILE}
COMPATIBILITY SameMajorVersion)
COMPATIBILITY AnyNewerVersion)

install(FILES ${CONFIG_CMAKE_FILE}
${CONFIG_VERSION_CMAKE_FILE}
Expand Down

0 comments on commit 019d1dd

Please sign in to comment.