• Samuel Martin's avatar
    cmake: fix gstreamer check conditions · 38bb0db9
    Samuel Martin authored
    The current situation of the Gstreamer detection does not always honor
    all the configurations set by the user, among this:
    - if both WITH_GSTREAMER and WITH_GSTREAMER_0_10 are off, but
      Gstreamer 0.10 is installed in the system, Gstreamer 0.10 support will
      be enable;
    - if both WITH_GSTREAMER and WITH_GSTREAMER_0_10 are on, only checks for
      Gstreamer 0.10 will be run.
    
    This patch fixes the Gstreamer detection like this:
    
      |        -DWITH_...          | Package installed  ||    OpenCV    |
      | GSTREAMER | GSTREAMER_0_10 | gst-1.x | gst-0.10 || gst. support |
      +===========+================+=========+==========##==============+
      |    OFF    |      OFF       |    -    |    -     ||     none     |
      |    OFF    |      ON        |    -    |    no    ||     none     |
      |    OFF    |      ON        |    -    |   yes    ||   gst-0.10   |
      |    ON     |      OFF       |    no   |    no    ||     none     |
      |    ON     |      OFF       |    no   |   yes    ||   gst-0.10   |
      |    ON     |      OFF       |   yes   |    -     ||    gst-1.x   |
      |    ON     |      ON        |   yes   |    -     ||    gst-1.x   |
    Signed-off-by: 's avatarSamuel Martin <s.martin49@gmail.com>
    38bb0db9
Name
Last commit
Last update
3rdparty Loading commit data...
apps Loading commit data...
cmake Loading commit data...
data Loading commit data...
doc Loading commit data...
include Loading commit data...
modules Loading commit data...
platforms Loading commit data...
samples Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.tgitconfig Loading commit data...
CMakeLists.txt Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
index.rst Loading commit data...