diff -up ParaView-3.98.0-src/Utilities/ProcessXML/CMakeLists.txt.kwprocessxml_rpath ParaView-3.98.0-src/Utilities/ProcessXML/CMakeLists.txt
--- ParaView-3.98.0-src/Utilities/ProcessXML/CMakeLists.txt.kwprocessxml_rpath 2012-12-03 08:31:26.000000000 -0700
+++ ParaView-3.98.0-src/Utilities/ProcessXML/CMakeLists.txt 2012-12-07 10:53:37.407649217 -0700
@@ -33,19 +33,10 @@ vtk_module_export("")
include(vtkForwardingExecutable)
if (NOT CMAKE_CROSSCOMPILING)
- add_executable(kwProcessXML ProcessXML.cxx)
+ vtk_add_executable_with_forwarding(out_exe_suffix kwProcessXML ProcessXML.cxx)
target_link_libraries(kwProcessXML vtkCommonCore vtksys)
-
- if (UNIX)
- # setup install rpath correctly so that kwProcessXML can file needed libraries
- # at runtime.
- set (_temp_prefix "/tmp")
- set (_bin "${_temp_prefix}/${VTK_INSTALL_RUNTIME_DIR}")
- set (_so "${_temp_prefix}/${VTK_INSTALL_LIBRARY_DIR}")
- file (RELATIVE_PATH relative_path "${_bin}" "${_so}")
- set_target_properties(kwProcessXML PROPERTIES
- INSTALL_RPATH "\$ORIGIN/${relative_path}")
- endif()
-
vtk_compile_tools_target(kwProcessXML)
+ if (NOT VTK_INSTALL_NO_DEVELOPMENT)
+ pv_executable_install(kwProcessXML "${out_exe_suffix}")
+ endif()
endif()