Commit 2d000780 authored by Robert Maynard's avatar Robert Maynard Committed by Kitware Robot

Merge topic 'honor_visibility_properties_for_kits'

33506705 Enable CMP0063 as it is needed to properly build in kit mode
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Mathieu Westphal's avatarMathieu Westphal <mathieu.westphal@kitware.com>
Reviewed-by: Brad King's avatarBrad King <brad.king@kitware.com>
Merge-request: !1612
parents 674fd339 33506705
Pipeline #18429 running with stage
......@@ -710,8 +710,9 @@ VTK_AUTOINIT(${vtk-module})
# mismatched visibility warnings when building statically since not all
# libraries that VTK builds don't set visibility flags. Until we get a
# time to do that, we skip visibility flags for static libraries.
if(CMAKE_VERSION VERSION_LESS 3.0)
#CMake 3.0 deprecates add_compiler_export_flags
if(CMAKE_VERSION VERSION_LESS 3.3)
#CMake 3.3 deprecates add_compiler_export_flags and also has policy
#CMP0063 which properly propagates visibility flags to OBJECT libs
vtk_add_compiler_export_flags(my_abi_flags)
set_property(TARGET ${vtk-module}${target_suffix} APPEND
PROPERTY COMPILE_FLAGS "${my_abi_flags}")
......
......@@ -13,6 +13,7 @@ foreach(p
CMP0025 # CMake 3.0
CMP0053 # CMake 3.1
CMP0054 # CMake 3.1
CMP0063 # CMake 3.3
)
if(POLICY ${p})
cmake_policy(SET ${p} NEW)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment