From 2502c8d212a9adb1910fb0ccd4ad72acb0231b39 Mon Sep 17 00:00:00 2001 From: WaluigiWare64 <68647953+WaluigiWare64@users.noreply.github.com> Date: Wed, 3 Feb 2021 16:14:53 +0000 Subject: Add NetBSD support (#985) Note - This will require PaX MPROTECT to be disabled for melonDS by running: paxctl +m melonDS --- src/frontend/qt_sdl/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/frontend/qt_sdl') diff --git a/src/frontend/qt_sdl/CMakeLists.txt b/src/frontend/qt_sdl/CMakeLists.txt index 8f48390..f61e0ca 100644 --- a/src/frontend/qt_sdl/CMakeLists.txt +++ b/src/frontend/qt_sdl/CMakeLists.txt @@ -92,7 +92,10 @@ endif() if (UNIX) option(PORTABLE "Make a portable build that looks for its configuration in the current directory" OFF) - target_link_libraries(melonDS dl Qt5::Core Qt5::Gui Qt5::Widgets) + target_link_libraries(melonDS Qt5::Core Qt5::Gui Qt5::Widgets) + if (CMAKE_SYSTEM_NAME STREQUAL "Linux") + target_link_libraries(melonDS dl) + endif() elseif (WIN32) option(PORTABLE "Make a portable build that looks for its configuration in the current directory" ON) configure_file("${CMAKE_SOURCE_DIR}/melon.rc.in" "${CMAKE_SOURCE_DIR}/melon.rc") -- cgit v1.2.3