• Stefan Brüns's avatar
    Handle absolute OPENCV_INCLUDE_INSTALL_PATH correctly · 0a45b8c4
    Stefan Brüns authored
    In case OPENCV_INCLUDE_INSTALL_PATH is absolute (i.e. starts with a "/"),
    the path ends up with a double "/".
    
    While this is mostly equivalent to a single slash, it may have a nasty
    side effect when:
    - OpenCV_INSTALL_PATH is empty
    - OPENCV_INCLUDE_INSTALL_PATH is "/usr/include"
    - the calling build script uses "-isystem" to specify the path to the
      headers of dependencies (to avoid warnings)
    
    Specifying "-isystem /usr/include" breaks the path ordering, and GCC can
    no longer find its "stdlib.h", thus CMake filters such statements.
    Unfortunately it fails to do so when using "//usr/include".
    0a45b8c4
Name
Last commit
Last update
.github Loading commit data...
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...
.editorconfig Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...