Skip to content

Commit

Permalink
replacing PCL_(FIND_)VERSION with PACKAGE_(FIND)_VERSION
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bouffa committed May 27, 2011
1 parent 7728939 commit f26e72d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions PCLConfigVersion.cmake.in
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit f26e72d

Please sign in to comment.