Skip to content

Commit

Permalink
devel/dmlc-core: use clang on architectures without openmp and disabl…
Browse files Browse the repository at this point in the history
…e openmp
  • Loading branch information
pkubaj committed Apr 27, 2022
1 parent 656c1fb commit ea1f1a3
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions devel/dmlc-core/Makefile
Expand Up @@ -9,19 +9,15 @@ COMMENT= Common library for scalable and portable distributed machine learning

LICENSE= APACHE20

USES= cmake
USES= cmake compiler:c++11-lang
USE_GITHUB= yes
GH_ACCOUNT= dmlc
USE_LDCONFIG= yes

CMAKE_ON= BUILD_SHARED_LIBS

.include <bsd.port.options.mk>

.if ${ARCH} == powerpc
USES+= compiler:gcc-c++11-lib
.else
USES+= compiler:c++11-lang
.if !exists(/usr/include/omp.h)
CMAKE_ARGS+= -DUSE_OPENMP:BOOL=OFF
.endif

.include <bsd.port.mk>

0 comments on commit ea1f1a3

Please sign in to comment.