Closed firefly2442 closed 11 years ago
If BUILD_FFMPEG is true, then LINK_AGAINST_PROVIDED_FFMPEG should also be true, but the opposite isn't true. You may want to link against the provided FFmpeg but not rebuild it (if no changes have been made to the enabled codecs). I admit it is mostly useful to sfeMovies' developers, but I did this because otherwise I don't know how to avoid rebuilding FFmpeg when no change to codecs have been made.
The best solution would be using an enumeration, with one constant for each of the 3 possible states, but I don't know (and I don't think) CMake supports this. That would need to be checked...
This has been fixed: there is no more BUILD_FFMPEG option in the CMake GUI and FFmpeg is (re)built only when required, ie. only when the configuration changed (new codec wanted, etc).
In the CMakeDirected branch, there are currently two variables:
BUILD_FFMPEG (Boolean) LINK_AGAINST_PROVIDED_FFMPEG (Boolean)
Is there a reason to have two? If you're going to build FFmpeg, you're probably going to want to link against it no? Could these two be consolidated into just one variable?