From 8baec214bb9bcb48409930e6e18f3e494c69b40c Mon Sep 17 00:00:00 2001 From: Tsukasa Sugiura Date: Tue, 10 May 2016 22:18:00 +0900 Subject: [PATCH] Enable to set the variable of "VTK_DIR" in CMake Enable to set the variable of "VTK_DIR" in CMake when generate user project. --- PCLConfig.cmake.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PCLConfig.cmake.in b/PCLConfig.cmake.in index 994d20e5d7f..1c8cf7c6811 100644 --- a/PCLConfig.cmake.in +++ b/PCLConfig.cmake.in @@ -455,12 +455,12 @@ endmacro(find_flann) macro(find_VTK) if(PCL_ALL_IN_ONE_INSTALLER AND NOT ANDROID) if(EXISTS "${PCL_ROOT}/3rdParty/VTK/lib/cmake") - set(VTK_DIR "${PCL_ROOT}/3rdParty/VTK/lib/cmake/vtk-@VTK_MAJOR_VERSION@.@VTK_MINOR_VERSION@") + set(VTK_DIR "${PCL_ROOT}/3rdParty/VTK/lib/cmake/vtk-@VTK_MAJOR_VERSION@.@VTK_MINOR_VERSION@" CACHE PATH "The directory containing VTKConfig.cmake") else() - set(VTK_DIR "${PCL_ROOT}/3rdParty/VTK/lib/vtk-@VTK_MAJOR_VERSION@.@VTK_MINOR_VERSION@") + set(VTK_DIR "${PCL_ROOT}/3rdParty/VTK/lib/vtk-@VTK_MAJOR_VERSION@.@VTK_MINOR_VERSION@" CACHE PATH "The directory containing VTKConfig.cmake") endif() elseif(NOT VTK_DIR AND NOT ANDROID) - set(VTK_DIR "@VTK_DIR@") + set(VTK_DIR "@VTK_DIR@" CACHE PATH "The directory containing VTKConfig.cmake") endif(PCL_ALL_IN_ONE_INSTALLER AND NOT ANDROID) if(NOT ANDROID) find_package(VTK ${QUIET_})