Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
By default active lua and ruby.
authornavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 22 Mar 2010 10:28:48 +0000 (10:28 +0000)
committernavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 22 Mar 2010 10:28:48 +0000 (10:28 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7295 48e7efb5-ca39-0410-a469-dd3cf9ba447f

buildtools/Cmake/src/CMakeCompleteInFiles.txt
buildtools/Cmake/src/CMakeOption.txt

index f87a230..5f60dac 100644 (file)
@@ -201,13 +201,12 @@ endif(NOT with_context_ok)
 #message("CONTEXT_THREADS ${CONTEXT_THREADS}")
 #message("CONTEXT_UCONTEXT ${CONTEXT_UCONTEXT}")
 set(HAVE_LUA 0)
+
 if(NOT disable_lua)
-       if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
-               CHECK_INCLUDE_FILE(lualib.h HAVE_LUA5_1_LUALIB_H)
-       elseif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
-               CHECK_INCLUDE_FILE(lua5.1/lualib.h HAVE_LUA5_1_LUALIB_H)
-       endif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
-       #message("HAVE_LUA5_1_LUALIB_H ${HAVE_LUA5_1_LUALIB_H}")
+       find_path(HAVE_LUA5_1_LUALIB_H
+       NAMES lualib.h 
+       PATHS "/sw/include/" "/usr/include/lua5.1/"
+       )
        if(HAVE_LUA5_1_LUALIB_H)
                set(HAVE_LUA 1)
        endif(HAVE_LUA5_1_LUALIB_H)
index d0bcc59..c38142f 100644 (file)
@@ -8,14 +8,14 @@ if(NOT with_context)
        set(with_context "auto" CACHE TYPE INTERNAL FORCE)
 endif(NOT with_context)
 
-option(enable_maintainer_mode "Permit to make flex and flexml files." off)
-option(supernovae "Supernovae mode." off)
 option(disable_java "This variable set the java context." off)
 option(disable_lua "This variable set lua use." off)
+option(disable_gtnets "This variable set the gtnets context." off)
+option(disable_ruby "This variable set ruby use." off)
 option(enable_compile_warnings "" off)
 option(enable_compile_optimizations "" off)
-option(disable_gtnets "This variable set the gtnets context." off)
-option(disable_ruby "This variable set ruby use." on)
+option(enable_maintainer_mode "Permit to make flex and flexml files." off)
+option(supernovae "Supernovae mode." off)
 
 mark_as_advanced(CLEAR gtnets_path)
 mark_as_advanced(BUILDNAME)