Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Avoid trailing whitespaces when dl not found
authordegomme <augustin.degomme@unibas.ch>
Tue, 11 Apr 2017 21:53:08 +0000 (23:53 +0200)
committerdegomme <augustin.degomme@unibas.ch>
Tue, 11 Apr 2017 21:53:08 +0000 (23:53 +0200)
... which is an issue by itself, but too late, martin will fix it tomorrow 8 a.m.

tools/cmake/MakeLib.cmake

index 4594264..c56ab59 100644 (file)
@@ -79,7 +79,7 @@ if(HAVE_GRAPHVIZ)
   endif()
 endif()
 
-if(HAVE_MC AND HAVE_GNU_LD)
+if(HAVE_MC AND HAVE_GNU_LD AND NOT ${DL_LIBRARY} STREQUAL "")
   SET(SIMGRID_DEP "${SIMGRID_DEP} ${DL_LIBRARY}")
 endif()
 
@@ -99,7 +99,9 @@ endif()
 ##################################
 
 if(enable_smpi)
-  set(SIMGRID_DEP "${SIMGRID_DEP} ${DL_LIBRARY}") # for privatization
+  if(NOT ${DL_LIBRARY} STREQUAL "")
+    set(SIMGRID_DEP "${SIMGRID_DEP} ${DL_LIBRARY}") # for privatization
+  endif()
   add_executable(smpimain src/smpi/smpi_main.c)
   target_link_libraries(smpimain simgrid)
   set_target_properties(smpimain