set(HAVE_THREAD_LOCAL_STORAGE 0)
endif()
+if(enable_model-checking AND NOT "${CMAKE_SYSTEM}" MATCHES "Linux")
+ message(WARNING "Support for model-checking has not been enabled on ${CMAKE_SYSTEM}: disabling it")
+ set(enable_model-checking FALSE)
+endif()
+
if(HAVE_MMAP AND HAVE_THREAD_LOCAL_STORAGE)
SET(HAVE_MMALLOC 1)
else()
include(FindLibunwind)
if(HAVE_LIBUNWIND)
- SET(SIMGRID_DEP "${SIMGRID_DEP} -lunwind -lunwind-ptrace")
+ SET(SIMGRID_DEP "${SIMGRID_DEP} -lunwind")
+ if("${CMAKE_SYSTEM}" MATCHES "Linux")
+ set(SIMGRID_DEP "${SIMGRID_DEP} -lunwind-ptrace")
+ endif()
# This supposes that the host machine is either an AMD or a X86.
# This is deeply wrong, and should be fixed by manually loading -lunwind-PLAT (FIXME)
if(PROCESSOR_x86_64)
endif()
endif()
-if(enable_model-checking AND NOT "${CMAKE_SYSTEM}" MATCHES "Linux")
- message(WARNING "Support for model-checking has not been enabled on ${CMAKE_SYSTEM}: disabling it")
- set(enable_model-checking FALSE)
-endif()
-
if(enable_model-checking)
SET(HAVE_MC 1)