Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Lame attempt to fix freebsd builds.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sun, 24 Nov 2019 22:25:55 +0000 (23:25 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sun, 24 Nov 2019 22:25:55 +0000 (23:25 +0100)
/usr/local/bin/ld: /usr/local/llvm-devel/lib/libomp.so: undefined reference to `kmp_set_thread_affinity_mask_initial'

tools/cmake/MakeLib.cmake

index 3ddbb8e..a35371b 100644 (file)
@@ -133,6 +133,9 @@ if(enable_smpi)
         if ("${CMAKE_SYSTEM_VERSION}" MATCHES "12")
             set(SIMGRID_DEP "${SIMGRID_DEP} -lpgmath")
         endif()
+        if ("${CMAKE_SYSTEM_VERSION}" MATCHES "12\.1")
+            set(SIMGRID_DEP "${SIMGRID_DEP} -lomp")
+        endif()
       endif()
     endif()
   endif()