Fixed versioning bug: FIND_PACKAGE( OpenCV ) errors if no version specified
authorAndrey Kamaev <no@email>
Fri, 1 Jul 2011 13:11:16 +0000 (13:11 +0000)
committerAndrey Kamaev <no@email>
Fri, 1 Jul 2011 13:11:16 +0000 (13:11 +0000)
OpenCVConfig-version.cmake.in

index b08dbf7..e030f94 100644 (file)
@@ -4,11 +4,11 @@ set(PACKAGE_VERSION ${OpenCV_VERSION})
 set(PACKAGE_VERSION_EXACT False)\r
 set(PACKAGE_VERSION_COMPATIBLE False)\r
 \r
-if(${PACKAGE_FIND_VERSION} VERSION_EQUAL ${PACKAGE_VERSION})\r
+if("${PACKAGE_FIND_VERSION}" VERSION_EQUAL ${PACKAGE_VERSION})\r
   set(PACKAGE_VERSION_EXACT True)\r
   set(PACKAGE_VERSION_COMPATIBLE True)\r
 endif()\r
 \r
-if(${PACKAGE_FIND_VERSION} VERSION_LESS ${PACKAGE_VERSION})\r
+if("${PACKAGE_FIND_VERSION}" VERSION_LESS ${PACKAGE_VERSION})\r
   set(PACKAGE_VERSION_COMPATIBLE True)\r
 endif()\r