1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

graphics/perceptualdiff: fix build without libomp

CMake Error at /usr/local/share/cmake/Modules/FindOpenMP.cmake:261 (try_compile):
  Failed to generate test project build system.
Call Stack (most recent call first):
  /usr/local/share/cmake/Modules/FindOpenMP.cmake:537 (_OPENMP_GET_FLAGS)
  CMakeLists.txt:25 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.
This commit is contained in:
Piotr Kubaj 2023-03-14 19:03:55 +00:00
parent b8a8ec6db4
commit 0a0f66e4af

View File

@ -17,6 +17,11 @@ PLIST_FILES= bin/perceptualdiff
USE_GITHUB= yes
GH_ACCOUNT= myint
USES= cmake compiler:c++0x
USES= cmake
.if !exists(/usr/include/omp.h)
USES+= compiler:gcc-c++11-lib
.else
USES+= compiler:c++0x
.endif
.include <bsd.port.mk>