using PARAVIEW_EXTERNAL_PLUGIN_DIRS with more than one plugin
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
When doing the configuration to compile paraview (ccmake) careful must me taken using the PARAVIEW_EXTERNAL_PLUGIN_DIRS variable. If more than one external plugin source directory is added (separated by ;) no trailing / (slash) is permitted. This is because the script that treat this variable (CMake/ParaViewPluginsMacros.cmake:169) create a build directory for each external plugin using the get_filename_component command. If a trailing / is present then the dir_name variable is empty and the plugin is build inside the ExternalPlugin (not in a subdirectory). Cmake gives an error if we use the same build directory to build 2 sources.
example using PARAVIEW_EXTERNAL_PLUGIN_DIRS /Path/to/my/plugin1/;/Path/to/my/plugin2/ :
CMake Error at CMake/ParaViewPluginsMacros.cmake:187 (add_subdirectory): The binary directory
/build/directory/of/ParaView4_binDebug/ExternalPlugins
is already used to build a source directory. It cannot be used to build source directory
/Path/to/my/plugin2
Specify a unique binary directory name. Call Stack (most recent call first): CMakeLists.txt:727 (pv_process_plugins)
using no trailing / solved the problem
PARAVIEW_EXTERNAL_PLUGIN_DIRS /Path/to/my/plugin1;/Path/to/my/plugin2