external plugin fails (Syntax error in cmake code at vtkModuleWrapClientServer.cmake:42 Invalid escape sequence \')
when compiling an external plugin against ParaView 5.8.1 I encountered an issue in ParView/VTK CMake code of an invalid escape sequence \' in the cmake code itself. I used vi to un-escaping the ' in the cmake code on the line referenced and the following line and this change resolved the issue.
I am using cmake 3.18.2
Full output below.
CMake Error at /usr/common/software/ParaView/builds/ParaView-5.8.1/lib64/cmake/paraview-5.8/vtkModuleWrapClientServer.cmake:40 (file):
Syntax error in cmake code at
/usr/common/software/ParaView/builds/ParaView-5.8.1/lib64/cmake/paraview-5.8/vtkModuleWrapClientServer.cmake:42
when parsing string
$<$<BOOL:${_vtk_client_server_genex_compile_definitions}>:\n-D\'$<JOIN:${_vtk_client_server_genex_compile_definitions},\'\n-D\'>\'>\n
$<$<BOOL:${_vtk_client_server_genex_include_directories}>:\n-I\'$<JOIN:${_vtk_client_server_genex_include_directories},\'\n-I\'>\'>\n
Invalid escape sequence \'
Call Stack (most recent call first):
/usr/common/software/ParaView/builds/ParaView-5.8.1/lib64/cmake/paraview-5.8/vtkModuleWrapClientServer.cmake:144 (_vtk_module_wrap_client_server_sources)
/usr/common/software/ParaView/builds/ParaView-5.8.1/lib64/cmake/paraview-5.8/vtkModuleWrapClientServer.cmake:309 (_vtk_module_wrap_client_server_library)
/usr/common/software/ParaView/builds/ParaView-5.8.1/lib64/cmake/paraview-5.8/ParaViewPlugin.cmake:1036 (vtk_module_wrap_client_server)
plugin/CMakeLists.txt:3 (paraview_add_plugin)
-- Configuring incomplete, errors occurred!
See also "/usr/common/software/ParaView/builds/cvtn-pv-5.8.1/CMakeFiles/CMakeOutput.log".