Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Having LD_LIBRARY_PATH is not mandatory.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 23 Mar 2012 09:23:45 +0000 (10:23 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 23 Mar 2012 13:50:36 +0000 (14:50 +0100)
Think of standard locations, like /usr/lib.

buildtools/Cmake/Modules/FindNS3.cmake

index c30f766..65882f3 100644 (file)
@@ -78,7 +78,6 @@ if(HAVE_NS3)
        string(REGEX MATCH "${HAVE_NS3_LIB}" operation "$ENV{LD_LIBRARY_PATH}")
        if(NOT operation)
                message(STATUS "Warning: To use NS-3 don't forget to set LD_LIBRARY_PATH with:  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${HAVE_NS3_LIB}")
-               set(HAVE_NS3 0)
        else(NOT operation)
        
                string(REGEX MATCH "-L${HAVE_NS3_LIB} " operation1 "${CMAKE_C_FLAGS}")
@@ -99,4 +98,4 @@ endif(HAVE_NS3)
 
 if(HAVE_NS3 AND enable_supernovae)
     set(enable_supernovae OFF)
-endif(HAVE_NS3 AND enable_supernovae)
\ No newline at end of file
+endif(HAVE_NS3 AND enable_supernovae)