Commit 13cccad8 authored by Brad King's avatar Brad King

Drop use of the CMake LOCATION target property

CMake 3.0 introduced policy CMP0026 to disallow use of the LOCATION
target property.  Drop our unused lookup of the protoc_compiler
LOCATION.  Replace our lookup of the kwProcessXML LOCATION with a direct
reference to the target in the custom command.  CMake will replace
the reference with the location while generating the project.

Change-Id: I78ffa82eb2aa57b30586e3f79102d2dfdaa07666
parent 6de39871
......@@ -82,7 +82,6 @@ set (${vtk-module}_HDRS
#------------------------------------------------------------------------------
# Generate the protbuf message file.
#------------------------------------------------------------------------------
get_target_property(PROTOC_LOCATION protoc_compiler LOCATION)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/vtkPVMessage.pb.h
${CMAKE_CURRENT_BINARY_DIR}/vtkPVMessage.pb.cc
......
......@@ -126,11 +126,10 @@ endforeach()
set (PARAVIEW_SERVERMANAGER_XMLS ${resourceFiles}
CACHE INTERNAL "Server Manager XMLs")
get_target_property(kwprocessXML_location kwProcessXML LOCATION)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/vtkSMGeneratedModules.h
DEPENDS ${resourceFiles} kwProcessXML
COMMAND ${kwprocessXML_location}
COMMAND kwProcessXML
${CMAKE_CURRENT_BINARY_DIR}/vtkSMGeneratedModules.h
vtkSMDefaultModules Interface GetInterfaces
${resourceFiles}
......
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