File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -109,8 +109,8 @@ configure_package_config_file(${CMAKE_CURRENT_SOURCE_DIR}/Config.cmake.in
109
109
# generate the version file for the config file
110
110
write_basic_package_version_file(
111
111
"${CMAKE_CURRENT_BINARY_DIR} /${PROJECT_NAME} ConfigVersion.cmake"
112
- VERSION "${${PROJECT_NAME} _VERSION_MAJOR}.${ ${PROJECT_NAME} _VERSION_MINOR}.${ ${PROJECT_NAME} _VERSION_PATCH }"
113
- COMPATIBILITY AnyNewerVersion
112
+ VERSION "${PROJECT_VERSION } "
113
+ COMPATIBILITY SameMajorVersion
114
114
)
115
115
116
116
# install the configuration file
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ target_include_directories(${PROJECT_NAME}
13
13
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} >
14
14
$<INSTALL_INTERFACE:include >
15
15
)
16
+ set_target_properties (${PROJECT_NAME} PROPERTIES VERSION ${PROJECT_VERSION} )
17
+ set_target_properties (${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR} )
16
18
17
19
# export file
18
20
include (GenerateExportHeader)
You can’t perform that action at this time.
0 commit comments