Skip to content

Commit

Permalink
cad/openvsp: fix build without libomp
Browse files Browse the repository at this point in the history
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)
  src/vsp_aero/Solver/CMakeLists.txt:9 (FIND_PACKAGE)

-fpermissive necessary because of:
/usr/include/c++/v1/__memory/compressed_pair.h:48:9: error: invalid conversion from 'int' to 'std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*' [-fpermissive]
  • Loading branch information
pkubaj committed Mar 13, 2023
1 parent fa21a49 commit 8d14ec2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cad/openvsp/Makefile
Expand Up @@ -24,8 +24,14 @@ LIB_DEPENDS= libdrm.so:graphics/libdrm \
libfltk.so:x11-toolkits/fltk \
libcpptest.so:devel/cpptest

USES= compiler:c++11-lang cmake:noninja localbase\
USES= cmake:noninja localbase\
gl gnome jpeg xorg
.if !exists(/usr/include/omp.h)
CXXFLAGS+= -fpermissive
USES+= compiler:gcc-c++11-lib
.else
USES+= compiler:c++11-lang
.endif
USE_GITHUB= yes
GH_ACCOUNT= ${GH_PROJECT}
GH_PROJECT= OpenVSP
Expand Down

0 comments on commit 8d14ec2

Please sign in to comment.