Hi Robert,

Reassigning DL_LIBRARY to an empty string
solves that cmake error on FreeBSD.

I'm just showing where/what the problem is,
fix it however appropriate.


[.......   top-level CMakeLists.txt of 2.9.7  .....]
IF(UNIX)
    # Not sure what this will do on Cygwin and Msys
    # Also, remember OS X X11 is a user installed option so it may not exist.
    FIND_PACKAGE(X11)
    # Some Unicies need explicit linkage to the Math library or the build fails.
    FIND_LIBRARY(MATH_LIBRARY m)
    FIND_LIBRARY(DL_LIBRARY dl)
>    IF(NOT DL_LIBRARY)
>        SET(DL_LIBRARY "") # change from NOTFOUND to empty when passed to 
> linker
>    ENDIF()
    IF( CMAKE_SYSTEM MATCHES "Linux" )
        FIND_LIBRARY( RT_LIBRARY rt )
    ENDIF( CMAKE_SYSTEM MATCHES "Linux" )
ENDIF()
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to