Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
More efficient with add definition
authornavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 17 Feb 2010 14:23:13 +0000 (14:23 +0000)
committernavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 17 Feb 2010 14:23:13 +0000 (14:23 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7109 48e7efb5-ca39-0410-a469-dd3cf9ba447f

buildtools/CPACK/src/CMakeCompleteInFiles.txt

index 699c67d..b949750 100644 (file)
@@ -10,13 +10,9 @@ exec_program("${FIND_EXE} /usr/lib -name ruby.h" OUTPUT_VARIABLE RUBY_PATH)
 string(REPLACE "/ruby.h" "" RUBY_PATH ${RUBY_PATH})
 message("RUBY_PATH ${RUBY_PATH}")
 CHECK_INCLUDE_FILE(${RUBY_PATH}/ruby.h HAVE_RUBY_H)
 string(REPLACE "/ruby.h" "" RUBY_PATH ${RUBY_PATH})
 message("RUBY_PATH ${RUBY_PATH}")
 CHECK_INCLUDE_FILE(${RUBY_PATH}/ruby.h HAVE_RUBY_H)
-message("HAVE_RUBY_H ${HAVE_RUBY_H}")
 
 if(HAVE_RUBY_H)
 
 if(HAVE_RUBY_H)
-       set(INCLUDES
-               ${INCLUDES}
-               "-I${RUBY_PATH} -I${${PROJECT_DIRECTORY}}/src/bindings/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)
 
 #--------------------------------------------------------------------------------------------------