Removed useless VERSION macro (and CMake variable)
authorRoman Donchenko <roman.donchenko@itseez.com>
Thu, 11 Jul 2013 10:28:41 +0000 (14:28 +0400)
committerRoman Donchenko <roman.donchenko@itseez.com>
Thu, 11 Jul 2013 10:30:46 +0000 (14:30 +0400)
cmake/OpenCVGenPkgconfig.cmake
cmake/templates/cvconfig.h.cmake
cmake/templates/opencv-XXX.pc.cmake.in

index 49d6707..7bfc7bc 100644 (file)
@@ -12,7 +12,6 @@ set(prefix      "${CMAKE_INSTALL_PREFIX}")
 set(exec_prefix "\${prefix}")
 set(libdir      "") #TODO: need link paths for OpenCV_EXTRA_COMPONENTS
 set(includedir  "\${prefix}/${OPENCV_INCLUDE_INSTALL_PATH}")
-set(VERSION     ${OPENCV_VERSION})
 
 if(CMAKE_BUILD_TYPE MATCHES "Release")
   set(ocv_optkind OPT)
index 8f88ea3..6ebe1c6 100644 (file)
@@ -91,9 +91,6 @@
 /* OpenCV compiled as static or dynamic libs */
 #cmakedefine  BUILD_SHARED_LIBS
 
-/* Version number of package */
-#define  VERSION "${PACKAGE_VERSION}"
-
 /* Define to 1 if your processor stores words with the most significant byte
    first (like Motorola and SPARC, unlike Intel and VAX). */
 #cmakedefine  WORDS_BIGENDIAN
index 4f6415c..c9dedb0 100644 (file)
@@ -8,6 +8,6 @@ includedir_new=@includedir@
 
 Name: OpenCV
 Description: Open Source Computer Vision Library
-Version: @VERSION@
+Version: @OPENCV_VERSION@
 Libs: @OpenCV_LIB_COMPONENTS@
 Cflags: -I${includedir_old} -I${includedir_new}