mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
lang/opensycl: fix build without libomp
CMake Error at /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (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:600 (_FPHSA_FAILURE_MESSAGE) /usr/local/share/cmake/Modules/FindOpenMP.cmake:581 (find_package_handle_standard_args) src/runtime/CMakeLists.txt:181 (find_package)
This commit is contained in:
parent
5d94931d0f
commit
230ffdc785
@ -15,7 +15,7 @@ BROKEN_FreeBSD_13_armv7= configure fails: Cannot run simple program using std::f
|
||||
|
||||
BUILD_DEPENDS= boost-libs>0:devel/boost-libs
|
||||
|
||||
USES= cmake compiler:c++11-lang llvm:15 python shebangfix
|
||||
USES= cmake llvm:15 python shebangfix
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
USE_GITHUB= yes
|
||||
@ -24,6 +24,12 @@ GH_PROJECT= OpenSYCL
|
||||
|
||||
SHEBANG_FILES= bin/syclcc-clang cmake/syclcc-launcher
|
||||
|
||||
.if !exists(/usr/include/omp.h)
|
||||
USES+= compiler:gcc-c++11-lib
|
||||
.else
|
||||
USES+= compiler:c++11-lang
|
||||
.endif
|
||||
|
||||
do-test: # many tests fail, see https://github.com/OpenSYCL/OpenSYCL/issues/996
|
||||
@cd ${WRKSRC}/tests && \
|
||||
mkdir -p build && \
|
||||
|
Loading…
Reference in New Issue
Block a user