From: hof Date: Sun, 14 Jul 2013 18:49:04 +0000 (-0400) Subject: Add libdl to FLTK_LIBRARIES when the system supports it. Required for libfltk1.3. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8c02a57ff8a9d786a3a12b23fcea03a60fb75d7b;p=flightgear.git Add libdl to FLTK_LIBRARIES when the system supports it. Required for libfltk1.3. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 33fb5464c..7088f0ec5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -213,6 +213,10 @@ if(ENABLE_FGADMIN) list(APPEND FLTK_LIBRARIES ${X11_Xft_LIB}) endif() + if ( CMAKE_DL_LIBS ) + list(APPEND FLTK_LIBRARIES ${CMAKE_DL_LIBS}) + endif() + message(STATUS "Using FLTK_LIBRARIES for fgadmin: ${FLTK_LIBRARIES}") endif ( FLTK_FOUND ) endif(ENABLE_FGADMIN)