Replaced our usage of LINK_PRIVATE with that of LINK_INTERFACE_LIBRARIES.
authorRoman Donchenko <roman.donchenko@itseez.com>
Fri, 25 Oct 2013 09:54:55 +0000 (13:54 +0400)
committerRoman Donchenko <roman.donchenko@itseez.com>
Fri, 25 Oct 2013 10:19:02 +0000 (14:19 +0400)
commit76b904b02269da81e675a91bc64614299d90ae6e
tree08e6abd1ed934934c11c3e90e171c2cf1de7752f
parente1c8f5d723bfb8d81b5c546d7bdb52afe07c592a
Replaced our usage of LINK_PRIVATE with that of LINK_INTERFACE_LIBRARIES.

The reasons for that are twofold:

1) LINK_PRIVATE is only available since CMake 2.8.7.
2) The way it was used generated a warning because of CMake policy CMP0023:

   http://www.cmake.org/cmake/help/v2.8.12/cmake.html#policy:CMP0023

Using LINK_INTERFACE_LIBRARIES actually causes another warning - this time
because of CMake policy CMP0022:

   http://www.cmake.org/cmake/help/v2.8.12/cmake.html#policy:CMP0022

I set the policy to OLD, because NEW means subtle changes when compiling
with CMake 2.8.12, and I don't want to research that this close to release.
:-)

I also removed the setting of CMP0003, because it's set by
cmake_minimal_version anyway.
CMakeLists.txt
cmake/OpenCVModule.cmake