Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix pcre path.
authornavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 28 Sep 2010 11:50:52 +0000 (11:50 +0000)
committernavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 28 Sep 2010 11:50:52 +0000 (11:50 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8284 48e7efb5-ca39-0410-a469-dd3cf9ba447f

buildtools/Cmake/CompleteInFiles.cmake
buildtools/Cmake/Option.cmake
buildtools/Cmake/PrintArgs.cmake

index f7f8daf..416d1da 100644 (file)
@@ -197,12 +197,14 @@ endif(HAVE_CGRAPH_LIB AND HAVE_CGRAPH_H)
 find_library(PATH_PCRE_LIB pcre "/usr/lib/")
 
 if(PATH_PCRE_LIB)
 find_library(PATH_PCRE_LIB pcre "/usr/lib/")
 
 if(PATH_PCRE_LIB)
-       string(REGEX REPLACE "/libpcre.*[.]so$" "" PATHLIBPCRE "${PCRE_LIB}")
+       string(REGEX REPLACE "/libpcre.*[.]so$" "" PATHLIBPCRE "${PATH_PCRE_LIB}")
                string(REGEX MATCH "-L${PATHLIBPCRE} " operation "${CMAKE_C_FLAGS}")
                if(NOT operation)
                        SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}-L${PATHLIBPCRE} ")
                endif(NOT operation)
        set(HAVE_PCRE_LIB 1)
                string(REGEX MATCH "-L${PATHLIBPCRE} " operation "${CMAKE_C_FLAGS}")
                if(NOT operation)
                        SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}-L${PATHLIBPCRE} ")
                endif(NOT operation)
        set(HAVE_PCRE_LIB 1)
+else(PATH_PCRE_LIB)
+               message(FATAL_ERROR "Must have libpcre")
 endif(PATH_PCRE_LIB)
 
 #--------------------------------------------------------------------------------------------------
 endif(PATH_PCRE_LIB)
 
 #--------------------------------------------------------------------------------------------------
index 2a7c638..302eea3 100644 (file)
@@ -54,7 +54,7 @@ if(enable_supernovae AND enable_model-checking)
        set(enable_model-checking false CACHE TYPE INTERNAL FORCE)
        message("\n\nWith supernovae mode the model checking must be disable.!!!\n\n")
 endif(enable_supernovae AND enable_model-checking)
        set(enable_model-checking false CACHE TYPE INTERNAL FORCE)
        message("\n\nWith supernovae mode the model checking must be disable.!!!\n\n")
 endif(enable_supernovae AND enable_model-checking)
-
+mark_as_advanced(PATH_PCRE_LIB)
 mark_as_advanced(HAVE_SSH)
 mark_as_advanced(HAVE_RSYNC)
 mark_as_advanced(enable_coverage)
 mark_as_advanced(HAVE_SSH)
 mark_as_advanced(HAVE_RSYNC)
 mark_as_advanced(enable_coverage)
index 167bdcf..744a3b8 100644 (file)
@@ -139,7 +139,7 @@ if(enable_print_message)
        endif(pipol_user)
        if(HAVE_PCRE_LIB)
        message("")
        endif(pipol_user)
        if(HAVE_PCRE_LIB)
        message("")
-    message("LIBPCRE : ${PCRE_LIB}")
+    message("LIBPCRE : ${PATH_PCRE_LIB}")
     message("PATH_LIBPCRE : ${PATHLIBPCRE}")
        endif(HAVE_PCRE_LIB)
        message("________________________________________________________________________________")
     message("PATH_LIBPCRE : ${PATHLIBPCRE}")
        endif(HAVE_PCRE_LIB)
        message("________________________________________________________________________________")