FindDl.cmake 323 Bytes
Newer Older
1 2
find_library(Dl_LIBRARIES
	NAMES libdl.so
Tobias WEBER's avatar
Tobias WEBER committed
3
	HINTS /usr/local/lib64 /usr/local/lib /usr/lib64 /usr/lib /opt/local/lib /usr/lib32 /usr/local/lib32
4 5 6 7
	DOC "DL library"
)

if(Dl_LIBRARIES)
Tobias WEBER's avatar
Tobias WEBER committed
8
	set(Dl_FOUND TRUE)
9 10
	message("DL library: ${Dl_LIBRARIES}")
else()
Tobias WEBER's avatar
Tobias WEBER committed
11
	set(Dl_FOUND FALSE)
12 13
	message("Error: libdl could not be found!")
endif()