Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Don't build smpi in a separate library anymore.
[simgrid.git] / buildtools / Cmake / DefinePackages.cmake
index 5ddc2b72c8949b582f420c72eb054ff2bb261764..893be50b038206e5f5c28dbee89f629a11f94c4d 100644 (file)
@@ -607,7 +607,6 @@ set(simgrid_sources
   ${SURF_SRC}
   ${TRACING_SRC}
   ${XBT_SRC}
-  ${SMPI_SRC}
   )
 
 if(${HAVE_JEDULE})
@@ -622,6 +621,18 @@ else()
     )
 endif()
 
+if(enable_smpi)
+  set(simgrid_sources
+    ${simgrid_sources}
+    ${SMPI_SRC}
+    )
+else()
+  set(EXTRA_DIST
+    ${EXTRA_DIST}
+    ${SMPI_SRC}
+    )
+endif()
+
 if(${HAVE_TRACING})
   set(simgrid_sources
     ${simgrid_sources}