diff --git a/.gitignore b/.gitignore index 285713a8..44bd62e9 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ CMakeSettings.json cmake-build-debug/ .idea/ .vs/ -.vscode/ \ No newline at end of file +.vscode/ +.cache/ \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 284b5412..f50dba08 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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::