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:
parent
b2ed37f5f5
commit
3636701fc2
3
.gitignore
vendored
3
.gitignore
vendored
@ -4,4 +4,5 @@ CMakeSettings.json
|
||||
cmake-build-debug/
|
||||
.idea/
|
||||
.vs/
|
||||
.vscode/
|
||||
.vscode/
|
||||
.cache/
|
||||
@ -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::
|
||||
|
||||
Loading…
Reference in New Issue
Block a user