Skip to content

fix cmakelists of parallel backend example #23376

@souch

Description

@souch

System Information

OpenCV version: 4.5.5 & 4.7.0
Operating System / Platform: Ubuntu 22.04
Compiler & compiler version: GCC 11.3.0

Detailed description

CMakeLists.txt examples of samples/cpp/tutorial_code/core/parallel_backend is missing project(...) marker. The compilation fails :

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)

Steps to reproduce

cd samples/cpp/tutorial_code/core/parallel_backend
mkdir build
cd build
cmake .. -DCMAKE_PREFIX_PATH=...opencv_installpath...

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions