From e3459807e481c3e91e2ea7fdb190743d6e4122af Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Fri, 17 Jan 2025 18:03:52 +0100 Subject: [PATCH] graphics/luminance-qt5: fix build without libomp CMake Error at /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:233 (message): Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) Call Stack (most recent call first): /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE) /usr/local/share/cmake/Modules/FindOpenMP.cmake:616 (find_package_handle_standard_args) build_files/Modules/CompilerSettings.cmake:40 (FIND_PACKAGE) CMakeLists.txt:38 (include) --- graphics/luminance-qt5/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/graphics/luminance-qt5/Makefile b/graphics/luminance-qt5/Makefile index fecc833a650b..69fee5407f08 100644 --- a/graphics/luminance-qt5/Makefile +++ b/graphics/luminance-qt5/Makefile @@ -24,8 +24,7 @@ LIB_DEPENDS= libImath.so:math/Imath \ CFLAGS+= -I${LOCALBASE}/include/Imath -USES= cmake compiler:c++14-lang desktop-file-utils \ - eigen:3 jpeg pkgconfig qt:5 tar:bzip2 +USES= cmake desktop-file-utils eigen:3 jpeg pkgconfig qt:5 tar:bzip2 USE_QT= concurrent core declarative gui location network \ printsupport sql svg widgets xml \ buildtools:build linguisttools:build qmake:build @@ -46,6 +45,8 @@ HELPBROWSER_CMAKE_BOOL= WITH_HELPBROWSER .if !exists(/usr/include/omp.h) USES+= compiler:gcc-c++11-lib +.else +USES+= compiler:c++14-lang .endif .include