Skip to content

cmake(3rdparty): use EXCLUDE_FROM_ALL#18672

Merged
opencv-pushbot merged 1 commit intoopencv:3.4from
alalek:cmake_3rdparty_exclude_from_all
Oct 28, 2020
Merged

cmake(3rdparty): use EXCLUDE_FROM_ALL#18672
opencv-pushbot merged 1 commit intoopencv:3.4from
alalek:cmake_3rdparty_exclude_from_all

Conversation

@alalek
Copy link
Copy Markdown
Member

@alalek alalek commented Oct 27, 2020

closes #10950

Configuration to check:

cmake ... -DCMAKE_INSTALL_PREFIX=`pwd`/install -DBUILD_LIST=core,imgproc -DBUILD_SHARED_LIBS=OFF
make install / ninja install / etc

@alalek
Copy link
Copy Markdown
Member Author

alalek commented Oct 27, 2020

CMake is buggy until 3.14.0 (from 2.6) and emits warnings:


Workaround should be applied (for CMake 2.8.12.2+).


WARNING: Target "libcpufeatures" has EXCLUDE_FROM_ALL set and will not be built by default but an install rule has been provided for it.  CMake does not define behavior for this case.
WARNING: Target "libjpeg-turbo" has EXCLUDE_FROM_ALL set and will not be built by default but an install rule has been provided for it.  CMake does not define behavior for this case.
WARNING: Target "libtiff" has EXCLUDE_FROM_ALL set and will not be built by default but an install rule has been provided for it.  CMake does not define behavior for this case.
WARNING: Target "libwebp" has EXCLUDE_FROM_ALL set and will not be built by default but an install rule has been provided for it.  CMake does not define behavior for this case.
WARNING: Target "libjasper" has EXCLUDE_FROM_ALL set and will not be built by default but an install rule has been provided for it.  CMake does not define behavior for this case.
WARNING: Target "libpng" has EXCLUDE_FROM_ALL set and will not be built by default but an install rule has been provided for it.  CMake does not define behavior for this case.
WARNING: Target "IlmImf" has EXCLUDE_FROM_ALL set and will not be built by default but an install rule has been provided for it.  CMake does not define behavior for this case.
WARNING: Target "libprotobuf" has EXCLUDE_FROM_ALL set and will not be built by default but an install rule has been provided for it.  CMake does not define behavior for this case.
WARNING: Target "quirc" has EXCLUDE_FROM_ALL set and will not be built by default but an install rule has been provided for it.  CMake does not define behavior for this case.
WARNING: Target "ittnotify" has EXCLUDE_FROM_ALL set and will not be built by default but an install rule has been provided for it.  CMake does not define behavior for this case.

@alalek
Copy link
Copy Markdown
Member Author

alalek commented Oct 28, 2020

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

protobuf is built even when the modules needing it are turned off

2 participants