Merge pull request #4017 from bentley/openbsd-libs

OpenBSD neither provides nor requires libdl and librt.
This commit is contained in:
Matthew Parlane 2016-07-18 12:42:14 +12:00 committed by GitHub
commit 4b9173ca62
3 changed files with 3 additions and 3 deletions

View file

@ -93,7 +93,7 @@ elseif(USE_X11)
set(LIBS ${LIBS} ${XRANDR_LIBRARIES})
endif()
if(NOT CMAKE_SYSTEM_NAME MATCHES FreeBSD)
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(LIBS ${LIBS} dl)
endif()

View file

@ -67,7 +67,7 @@ endif()
set(WXLIBS ${wxWidgets_LIBRARIES})
if(NOT CMAKE_SYSTEM_NAME MATCHES FreeBSD)
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(WXLIBS ${WXLIBS} dl)
endif()