From Jim Brooks, fix for FreeBSD build where FIND_LIBRARY(DL_LIBRARY..) return NOT_FOUND.
This commit is contained in:
parent
d218032448
commit
3f39a66035
@ -152,10 +152,16 @@ IF(UNIX)
|
|||||||
FIND_PACKAGE(X11)
|
FIND_PACKAGE(X11)
|
||||||
# Some Unicies need explicit linkage to the Math library or the build fails.
|
# Some Unicies need explicit linkage to the Math library or the build fails.
|
||||||
FIND_LIBRARY(MATH_LIBRARY m)
|
FIND_LIBRARY(MATH_LIBRARY m)
|
||||||
|
|
||||||
FIND_LIBRARY(DL_LIBRARY dl)
|
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" )
|
IF( CMAKE_SYSTEM MATCHES "Linux" )
|
||||||
FIND_LIBRARY( RT_LIBRARY rt )
|
FIND_LIBRARY( RT_LIBRARY rt )
|
||||||
ENDIF( CMAKE_SYSTEM MATCHES "Linux" )
|
ENDIF( CMAKE_SYSTEM MATCHES "Linux" )
|
||||||
|
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(
|
INCLUDE_DIRECTORIES(
|
||||||
|
Loading…
Reference in New Issue
Block a user