### Find programs and paths
FIND_PROGRAM(GCOV_PATH gcov)
include(FindPerl)
-if(NOT PERL_EXECUTABLE)
- message(FATAL_ERROR "-- SimGrid cannot be compiled without Perl installed -- sorry. Bailling out.")
+if(NOT PERL_FOUND)
+ message(FATAL_ERROR "Please install Perl to compile SimGrid.")
endif()
if (APPLE)
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
endif()
-
-### Set some variables for Cmake
SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
### Compute the include paths
set(INCLUDES
${CMAKE_HOME_DIRECTORY}
${CMAKE_HOME_DIRECTORY}/include
- ${CMAKE_HOME_DIRECTORY}/src
${CMAKE_HOME_DIRECTORY}/src/include
- ${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/include
- ${CMAKE_BINARY_DIR}/src
)
if(WIN32)