forked from Kitware/ParaView
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ParaViewMigrations.cmake
25 lines (24 loc) · 957 Bytes
/
ParaViewMigrations.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
function (paraview_migrate_setting oldname newname doc)
if (DEFINED "${oldname}" AND
NOT DEFINED "${newname}")
set("${newname}" "${${oldname}}" CACHE STRING "${doc}")
unset("${oldname}")
unset("${oldname}" CACHE)
message(AUTHOR_WARNING
"The `${oldname}` setting has been migrated to `${newname}`.")
endif ()
endfunction ()
# XXX(paraview-5.10): Once there is a version number that users can use to
# determine what is needed, migrate ParaView::cgns settings for VTK::cgns.
paraview_migrate_setting(
VTK_MODULE_ENABLE_ParaView_cgns
VTK_MODULE_ENABLE_VTK_cgns
"Migration of ParaView::cgns settings")
paraview_migrate_setting(
VTK_MODULE_USE_EXTERNAL_ParaView_cgns
VTK_MODULE_USE_EXTERNAL_VTK_cgns
"Migration of ParaView::cgns settings")
paraview_migrate_setting(
VTK_MODULE_ENABLE_ParaView_VTKExtensionsCGNSReader
VTK_MODULE_ENABLE_VTK_IOCGNSReader
"Migration of ParaView::VTKExtensionsCGNSReader settings")