Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
sthread does not exist on FreeBSD so don't break MC builds there
[simgrid.git] / tools / cmake / MakeLib.cmake
index f5d906cec30b525ff123240bd89ba9a4b8e6e1a4..fdd596b0a641dadb74b6f73b6b7fb439456cbaab 100644 (file)
@@ -47,7 +47,9 @@ if(enable_model-checking)
   install(TARGETS simgrid-mc # install that binary without breaking the rpath on Mac
     RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}/)
   add_dependencies(tests-mc simgrid-mc)
   install(TARGETS simgrid-mc # install that binary without breaking the rpath on Mac
     RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}/)
   add_dependencies(tests-mc simgrid-mc)
-  add_dependencies(tests-mc sthread)
+  if("${CMAKE_SYSTEM}" MATCHES "Linux")
+    add_dependencies(tests-mc sthread)
+  endif()
 endif()
 
 # Compute the dependencies of SimGrid
 endif()
 
 # Compute the dependencies of SimGrid