From f26e72d9d4a1b920192eeb143340752630369eaa Mon Sep 17 00:00:00 2001 From: Mourad Boufarguine Date: Fri, 27 May 2011 19:08:28 +0000 Subject: [PATCH] replacing PCL_(FIND_)VERSION with PACKAGE_(FIND)_VERSION for version checking to work with the PCLConfigVersion.cmake, the variables should have the PACKAGE prefix not PCL git-svn-id: svn+ssh://svn.pointclouds.org/pcl/trunk@1096 a9d63959-f2ad-4865-b262-bf0e56cfafb6 --- PCLConfigVersion.cmake.in | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/PCLConfigVersion.cmake.in b/PCLConfigVersion.cmake.in index 96287f6acf8..ecb80f5523e 100644 --- a/PCLConfigVersion.cmake.in +++ b/PCLConfigVersion.cmake.in @@ -1,13 +1,13 @@ -# Check whether the requested PCL_FIND_VERSION is compatible +# Check whether the requested PACKAGE_FIND_VERSION is compatible -set(PCL_VERSION @PCL_VERSION@) +set(PACKAGE_VERSION @PCL_VERSION@) # Check whether the requested PACKAGE_FIND_VERSION is compatible -if("${PCL_VERSION}" VERSION_LESS "${PCL_FIND_VERSION}") - set(PCL_VERSION_COMPATIBLE FALSE) +if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}") + set(PACKAGE_VERSION_COMPATIBLE FALSE) else() - set(PCL_VERSION_COMPATIBLE TRUE) - if ("${PCL_VERSION}" VERSION_EQUAL "${PCL_FIND_VERSION}") - set(PCL_VERSION_EXACT TRUE) + set(PACKAGE_VERSION_COMPATIBLE TRUE) + if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}") + set(PACKAGE_VERSION_EXACT TRUE) endif() endif() \ No newline at end of file