From dfe5b50955676417737fa23475d96fdfb241e52e Mon Sep 17 00:00:00 2001 From: Ben Boeckel <ben.boeckel@kitware.com> Date: Thu, 10 Jun 2021 13:35:12 -0400 Subject: [PATCH] wheel: reduce the size of Linux and macOS wheels Wheels make copies of files instead of storing symlinks. Drop the information in wheels to save space since they're not really reusable as SDKs anyways. --- CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a0b2120443b..81d3309bc8e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -355,6 +355,13 @@ if (VTK_CUSTOM_LIBRARY_SUFFIX STREQUAL "<DEFAULT>") endif () endif () +set(vtk_library_version_info + VERSION "${VTK_VERSION}" + SOVERSION "1") +if (VTK_WHEEL_BUILD) + set(vtk_library_version_info) +endif () + vtk_module_build( MODULES ${vtk_modules} KITS ${vtk_kits} @@ -365,8 +372,7 @@ vtk_module_build( CMAKE_DESTINATION "${vtk_cmake_destination}" LICENSE_DESTINATION "${CMAKE_INSTALL_LICENSEDIR}" LIBRARY_NAME_SUFFIX "${VTK_CUSTOM_LIBRARY_SUFFIX}" - VERSION "${VTK_VERSION}" - SOVERSION "1" + ${vtk_library_version_info} TEST_DATA_TARGET VTKData INSTALL_HEADERS "${VTK_INSTALL_SDK}" BUILD_WITH_KITS "${VTK_ENABLE_KITS}" -- GitLab