Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make ruby in consideration with cmake.
[simgrid.git] / buildtools / CPACK / src / CMakeCompleteInFiles.txt
index b949750..6ef817a 100644 (file)
@@ -11,9 +11,9 @@ string(REPLACE "/ruby.h" "" RUBY_PATH ${RUBY_PATH})
 message("RUBY_PATH ${RUBY_PATH}")
 CHECK_INCLUDE_FILE(${RUBY_PATH}/ruby.h HAVE_RUBY_H)
 
-if(HAVE_RUBY_H)
+if(HAVE_RUBY_H AND NOT disable_ruby)
        add_definitions("-I${RUBY_PATH} -I${PROJECT_DIRECTORY}/src/bindings/ruby -I${PROJECT_DIRECTORY}/src/simix")
-endif(HAVE_RUBY_H)
+endif(HAVE_RUBY_H AND NOT disable_ruby)
 
 #--------------------------------------------------------------------------------------------------
 ### Initialize of CONTEXT JAVA