Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

souch
Copy link
Contributor

@souch souch commented Mar 27, 2023

closes #23376

@mshabunin
Copy link
Contributor

This file already have two different project calls, but only when TBB or OpenMP has been found. If you experience configuration error, it means that neither of these libraries have been found. Perhaps an additional check and an error message might be useful instead of third project call.

@souch
Copy link
Contributor Author

souch commented Apr 4, 2023

The cmake error actually comes from calling find_package(OpenMP) before any project call.

CMake Error at /usr/share/cmake-3.22/Modules/FindOpenMP.cmake:615 (message):
  FindOpenMP requires the C, CXX or Fortran languages to be enabled
Call Stack (most recent call first):
  CMakeLists.txt:8 (find_package)

I changed the pull request so that it just call project before find_package.
Thanks for taking your time for this minor problem.

@mshabunin
Copy link
Contributor

I suggest applying similar change to the TBB block for consistency.

@asmorkalov asmorkalov merged commit 88a7e8c into opencv:4.x Apr 11, 2023
@asmorkalov asmorkalov added this to the 4.8.0 milestone Apr 11, 2023
@asmorkalov asmorkalov mentioned this pull request May 31, 2023
thewoz pushed a commit to thewoz/opencv that referenced this pull request Jan 4, 2024
…-example

fix cmakelists of parallel backend example
closes opencv#23376
thewoz pushed a commit to thewoz/opencv that referenced this pull request May 29, 2024
…-example

fix cmakelists of parallel backend example
closes opencv#23376
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.

fix cmakelists of parallel backend example

3 participants