Commit a0c4c6a5 authored by Chris Harris's avatar Chris Harris
Browse files

VTKTargets is hardcoded as the export name

Rather than VTKTargets this should be ${VTK_INSTALL_EXPORT_NAME}
so other projects such as ParaView can change it.

Change-Id: Id687a59227f25e7bed525f1f2799ffb42f7e0f01
parent 879a6868
...@@ -253,7 +253,7 @@ install(FILES ${VTK_BINARY_DIR}/CMakeFiles/VTKConfig.cmake ...@@ -253,7 +253,7 @@ install(FILES ${VTK_BINARY_DIR}/CMakeFiles/VTKConfig.cmake
DESTINATION ${VTK_INSTALL_PACKAGE_DIR}) DESTINATION ${VTK_INSTALL_PACKAGE_DIR})
get_property(VTK_TARGETS GLOBAL PROPERTY VTK_TARGETS) get_property(VTK_TARGETS GLOBAL PROPERTY VTK_TARGETS)
if(VTK_TARGETS) if(VTK_TARGETS)
install(EXPORT VTKTargets DESTINATION ${VTK_INSTALL_PACKAGE_DIR}) install(EXPORT ${VTK_INSTALL_EXPORT_NAME} DESTINATION ${VTK_INSTALL_PACKAGE_DIR})
else() else()
set(CMAKE_CONFIGURABLE_FILE_CONTENT "# No targets!") set(CMAKE_CONFIGURABLE_FILE_CONTENT "# No targets!")
configure_file(${CMAKE_ROOT}/Modules/CMakeConfigurableFile.in configure_file(${CMAKE_ROOT}/Modules/CMakeConfigurableFile.in
......
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