cmake_minimum_required(VERSION 2.8.5 FATAL_ERROR)
if(POLICY CMP0025)
  cmake_policy(SET CMP0025 NEW) # CMake 3.0
endif()
if(POLICY CMP0053)
  cmake_policy(SET CMP0053 NEW) # CMake 3.1
endif()

PROJECT (Step6)

find_package(VTK COMPONENTS
  vtkFiltersSources
  vtkInteractionWidgets
  vtkRendering${VTK_RENDERING_BACKEND}
)
include(${VTK_USE_FILE})

add_executable(Cone6 MACOSX_BUNDLE Cone6.cxx)
find_package( VTK )
target_link_libraries(Cone6 ${VTK_LIBRARIES})

cmake_minimum_required(VERSION 2.8.5 FATAL_ERROR)
if(POLICY CMP0025)
  cmake_policy(SET CMP0025 NEW) # CMake 3.0
endif()
if(POLICY CMP0053)
  cmake_policy(SET CMP0053 NEW) # CMake 3.1
endif()

PROJECT (Step6)

find_package(VTK COMPONENTS
  vtkFiltersSources
  vtkInteractionWidgets
  vtkRendering${VTK_RENDERING_BACKEND}
)
include(${VTK_USE_FILE})

add_executable(Cone6 MACOSX_BUNDLE Cone6.cxx)
target_link_libraries(Cone6 ${VTK_LIBRARIES})

Remove the unnecessary find_package command.
Remove the unnecessary find_package command.

This generated a "Policy CMP0020 is not set" message when
building VTK with QT enabled.

Change-Id: Ia06611d46348a63a33cf85eaa871bf00f5e78563
Signed-off-by: Andrew Maclean <c9b2f5a1dba95786ee62d836bcc66ea197719bbe@gmail.com>
