avoid cmake complaining about using VERSION keyword (#275)

[cmake] CMake Error at CMakeLists.txt:190 (set_target_properties):
	[cmake]   INTERFACE_LIBRARY targets may only have whitelisted properties.  The
	[cmake]   property "VERSION" is not allowed.

Signed-off-by: Fiorentino, Stefano <stefano.fiorentino@adesso.ch>
Co-authored-by: Fiorentino, Stefano <stefano.fiorentino@adesso.ch>
This commit is contained in:
Stefano Fiorentino 2023-02-27 18:47:35 +01:00 committed by GitHub
parent b2ed37f5f5
commit 3636701fc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 7 deletions

3
.gitignore vendored
View File

@ -4,4 +4,5 @@ CMakeSettings.json
cmake-build-debug/
.idea/
.vs/
.vscode/
.vscode/
.cache/

View File

@ -186,12 +186,13 @@ install(
#
# Install targets
#
set_target_properties(
uvw PROPERTIES
VERSION ${UVW_VERSION_MAJOR}.${UVW_VERSION_MINOR}.${UVW_VERSION_PATCH}
SOVERSION ${UVW_VERSION_MAJOR}
)
if (BUILD_UVW_LIBS)
set_target_properties(
uvw PROPERTIES
VERSION ${UVW_VERSION_MAJOR}.${UVW_VERSION_MINOR}.${UVW_VERSION_PATCH}
SOVERSION ${UVW_VERSION_MAJOR}
)
endif()
install(
EXPORT uvwConfig
NAMESPACE uvw::