Bug#1006682: /usr/lib/cmake/mathgl2/MathGL2Config.cmake: Could NOT find OpenMP_CXX

Rafael Laboissière rafael at debian.org
Tue Aug 30 21:03:22 BST 2022


Control: tags -1 moreinfo

* Sylvain Joubert <joubert.sy at gmail.com> [2022-03-02 11:17]:

>  Package: libmgl-dev
>  Version: 8.0.1-1
>  Severity: normal
>
> Dear Maintainer,
>
> Trying to use libmgl-dev through find_package(MathGL2) in CMake I'm facing the 
> following error:
>
>  CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230
>  (message): Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
>  Call Stack (most recent call first):
>  /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594
>  (_FPHSA_FAILURE_MESSAGE)
>   /usr/share/cmake-3.22/Modules/FindOpenMP.cmake:544
>  (find_package_handle_standard_args)
>   /usr/share/cmake-3.22/Modules/CMakeFindDependencyMacro.cmake:47
>  (find_package)
>   /usr/lib/cmake/mathgl2/MathGL2Config.cmake:22 (find_dependency)
>  [...]
>
> It appears the libmgl-dev package is missing a dependency on an OpenMP 
> related package. Installing libomp-dev fixes the issue though I'm not 
> sure this is the correct package to depend on.

Thank you for the bug report.

Could you please provide an example that trigger the bug? For 
inspiration, look at Bug #1004218 [1] or #1004219 [2].

Best,

Rafael Laboissière

  [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004218
  [2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004219



More information about the debian-science-maintainers mailing list