Cmake option OPENCV_BUILD_3RDPARTY_LIBS not working properly (Bug #1030)
Description
I'm trying to build OpenCV (SVN) with jpeg and png support, so I configure Cmake WITH_JPEG and WITH_PNG.
Since I want to link against different versions of libpng and libjpeg I turn off OPENCV_BUILD_3RDPARTY_LIBS, but my generated visual studio .sln includes projects for both libraries.
Associated revisions
Changed type of OPENCV_BUILD_3RDPARTY_LIBS variable to the INTERNAL on WIndows
(see comments for #1030 ticket https://code.ros.org/trac/opencv/ticket/1030)
Merge pull request #1030 from SpecLad:ts-impl-variants
History
Updated by Alexander Shishkov over 13 years ago
- Status deleted (
Open)
Updated by Alexander Shishkov over 13 years ago
Good day!
Yes, you are right, changes of OPENCV_BUILD_3RDPARTY_LIBS variable are ignored on Windows. This behavior was chosen deliberately, because on Unix-based operating systems needed third party libraries are often included in the standard repositories. But building theses libraries is complex and rare task On Windows.
I added some modifications to the main CMake file in 6828 revision. Now OPENCV_BUILD_3RDPARTY_LIBS variable is invisible in cmake-gui on Windows (INTERNAL type). If you need possibility to change it, you should to modify string
set(OPENCV_BUILD_3RDPARTY_LIBS TRUE CACHE INTERNAL "Build 3rd party libraries")
by
set(OPENCV_BUILD_3RDPARTY_LIBS TRUE CACHE BOOL "Build 3rd party libraries").
After the modification change of OPENCV_BUILD_3RDPARTY_LIBS variable will be working
as well as on Unix-based systems.
Best regards,
Alexander Shishkov.
- Status set to Done
- (deleted custom field) set to wontfix