Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
This file has been renamed.
[simgrid.git] / CMakeLists.txt
index 38839a6..bb26cff 100644 (file)
@@ -12,6 +12,10 @@ set(libsmpi_version "${release_version}")
 FIND_PROGRAM(GCOV_PATH gcov)
 FIND_PROGRAM(VALGRIND_PATH valgrind)
 include(FindPerl)
+if(NOT PERL_EXECUTABLE)
+       message(FATAL_ERROR "-- SimGrid cannot be compiled without Perl installed -- sorry. Bailling out.")
+endif(NOT PERL_EXECUTABLE)
+
 
 ### SET THE LIBRARY EXTENSION
 if(APPLE)
@@ -144,9 +148,7 @@ else(WIN32)
 endif(WIN32)
 
 ### Build the doc
-if(enable_doc)
-       include(${CMAKE_HOME_DIRECTORY}/buildtools/Cmake/GenerateDoc.cmake)
-endif(enable_doc)
+include(${CMAKE_HOME_DIRECTORY}/buildtools/Cmake/GenerateDoc.cmake)
 
 ### Make Simgrid.jar and Java examples
 if(HAVE_JAVA)