Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Corection of the gtnets-ruby bug with node.h and begining of the doc edition.
[simgrid.git] / buildtools / CPACK / src / CMakeCompleteInFiles.txt
index 69f9075..97d60f2 100644 (file)
@@ -9,14 +9,12 @@ if(NOT disable_ruby)
        SET(RUBY_PATH "non")
        find_program(FIND_EXE NAMES find)
        exec_program("${FIND_EXE} /usr/lib -name ruby.h" OUTPUT_VARIABLE RUBY_PATH)
        SET(RUBY_PATH "non")
        find_program(FIND_EXE NAMES find)
        exec_program("${FIND_EXE} /usr/lib -name ruby.h" OUTPUT_VARIABLE RUBY_PATH)
-       if(NOT RUBY_PATH)
-               set(RUBY_PATH "/usr/lib/ruby/ruby.h")
-       endif(NOT RUBY_PATH)
-       string(REPLACE "/ruby.h" "/" RUBY_PATH "${RUBY_PATH}")
+       string(REPLACE "/ruby.h" "/" RUBY_PATH ${RUBY_PATH})
        message("RUBY_PATH ${RUBY_PATH}")
        if(RUBY_PATH)
        SET(HAVE_RUBY_H 1)
        message("RUBY_PATH ${RUBY_PATH}")
        if(RUBY_PATH)
        SET(HAVE_RUBY_H 1)
-       add_definitions("-I${RUBY_PATH} -I${PROJECT_DIRECTORY}/src/bindings/ruby -I${PROJECT_DIRECTORY}/src/simix -fPIC")
+       SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I${RUBY_PATH} -I${PROJECT_DIRECTORY}/src/bindings/ruby -I${PROJECT_DIRECTORY}/src/simix -fPIC ")
+       #add_definitions("-I${RUBY_PATH} -I${PROJECT_DIRECTORY}/src/bindings/ruby -I${PROJECT_DIRECTORY}/src/simix -fPIC")
        endif(RUBY_PATH)
 endif(NOT disable_ruby)
 
        endif(RUBY_PATH)
 endif(NOT disable_ruby)