diff options
Diffstat (limited to 'cad/netgen/files')
-rw-r--r-- | cad/netgen/files/patch-CMakeLists.txt | 11 | ||||
-rw-r--r-- | cad/netgen/files/patch-ng_CMakeLists.txt | 14 |
2 files changed, 11 insertions, 14 deletions
diff --git a/cad/netgen/files/patch-CMakeLists.txt b/cad/netgen/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..b045ce93aa20 --- /dev/null +++ b/cad/netgen/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2022-03-02 05:28:33 UTC ++++ CMakeLists.txt +@@ -281,6 +281,8 @@ else() + add_library(netgen_python INTERFACE) + endif() + ++target_link_libraries(netgen_python INTERFACE pthread) ++ + if (USE_PYTHON) + add_subdirectory(external_dependencies/pybind11) + find_path(PYBIND_INCLUDE_DIR pybind11/pybind11.h HINTS ${PYTHON_INCLUDE_DIR}) diff --git a/cad/netgen/files/patch-ng_CMakeLists.txt b/cad/netgen/files/patch-ng_CMakeLists.txt deleted file mode 100644 index 98e814b52965..000000000000 --- a/cad/netgen/files/patch-ng_CMakeLists.txt +++ /dev/null @@ -1,14 +0,0 @@ -To fix this linker error: - ld: error: libsrc/interface/libinterface.so: undefined reference to pthread_create [--no-allow-shlib-undefined] -bang pthread into the executable. It's not a **good** fix, though. - ---- ng/CMakeLists.txt.orig 2021-03-18 07:16:55 UTC -+++ ng/CMakeLists.txt -@@ -32,6 +32,7 @@ if(USE_GUI) - endif(NOT APPLE) - - target_link_libraries( netgen nglib gui netgen_python ${MPI_mpi_LIBRARY} ${MPI_CXX_LIBRARIES} ${LIBTOGL} ${ZLIB_LIBRARIES} ${JPEG_LIBRARIES} ${FFMPEG_LIBRARIES} ${X11_Xmu_LIB} ${X11_X11_LIB} ${OCC_LIBRARIES} ${TK_LIBRARY} ${TCL_LIBRARY}) -+ target_link_libraries( netgen pthread ) - - if(NOT WIN32) - target_link_libraries( netgen mesh stlvis stl geom2dvis interface geom2d csg stl visual csgvis ) |