From eb4cae78aa75def726b88a853697b7adc6ef8fbd Mon Sep 17 00:00:00 2001 From: "Anthony J. Bentley" Date: Sun, 17 Jul 2016 03:54:31 -0600 Subject: [PATCH] OpenBSD neither provides nor requires libdl and librt. --- CMakeLists.txt | 2 +- Source/Core/Common/CMakeLists.txt | 2 +- Source/Core/DolphinWX/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ab3a10642..433462a31a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -415,7 +415,7 @@ if(ANDROID) # We are cross compiling, search only the toolchain for libraries and includes SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) -elseif(NOT APPLE) +elseif(NOT APPLE AND NOT CMAKE_SYSTEM_NAME MATCHES OpenBSD) list(APPEND LIBS rt) endif() diff --git a/Source/Core/Common/CMakeLists.txt b/Source/Core/Common/CMakeLists.txt index e35b7cd746..57a9d11337 100644 --- a/Source/Core/Common/CMakeLists.txt +++ b/Source/Core/Common/CMakeLists.txt @@ -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() diff --git a/Source/Core/DolphinWX/CMakeLists.txt b/Source/Core/DolphinWX/CMakeLists.txt index c67834889b..fa9d08c272 100644 --- a/Source/Core/DolphinWX/CMakeLists.txt +++ b/Source/Core/DolphinWX/CMakeLists.txt @@ -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()