From 01372ae03ec3952d783892694401a9171b47a9b4 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Tue, 14 May 2019 12:16:51 +0200 Subject: [PATCH] let's pretend that sunOS supports privatization (no idea) --- CMakeLists.txt | 2 +- tools/cmake/MakeLib.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 34d5caa427..12d1189ff4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -396,7 +396,7 @@ endif() if(enable_smpi) SET(HAVE_SMPI 1) - if("${CMAKE_SYSTEM}" MATCHES "Darwin|FreeBSD|Linux") + if("${CMAKE_SYSTEM}" MATCHES "Darwin|FreeBSD|Linux|SunOS") SET(HAVE_PRIVATIZATION 1) else() message (STATUS "Warning: no support for SMPI automatic privatization on this platform") diff --git a/tools/cmake/MakeLib.cmake b/tools/cmake/MakeLib.cmake index 3d7d59f669..203ddf4f11 100644 --- a/tools/cmake/MakeLib.cmake +++ b/tools/cmake/MakeLib.cmake @@ -42,7 +42,7 @@ endif() # Compute the dependencies of SimGrid ##################################### # search for dlopen -if("${CMAKE_SYSTEM_NAME}" MATCHES "kFreeBSD|Linux") +if("${CMAKE_SYSTEM_NAME}" MATCHES "kFreeBSD|Linux|SunOS") find_library(DL_LIBRARY dl) endif() mark_as_advanced(DL_LIBRARY) -- 2.20.1