diff options
author | WaluigiWare64 <68647953+WaluigiWare64@users.noreply.github.com> | 2021-02-03 16:14:53 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-03 16:14:53 +0000 |
commit | 2502c8d212a9adb1910fb0ccd4ad72acb0231b39 (patch) | |
tree | fa31a6018232f8d646f1063b2c11c11687474e8f /src/frontend/qt_sdl/CMakeLists.txt | |
parent | 7b9b8418cb91c98525a63fdd1c53089da0d0c758 (diff) |
Add NetBSD support (#985)
Note - This will require PaX MPROTECT to be disabled for melonDS by running:
paxctl +m melonDS
Diffstat (limited to 'src/frontend/qt_sdl/CMakeLists.txt')
-rw-r--r-- | src/frontend/qt_sdl/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
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") |