mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-28 09:59:41 -06:00
vcpkg: support building on Linux
This commit is contained in:
@ -160,7 +160,12 @@ if (BUILD_STATIC)
|
||||
if (WIN32 AND USE_QT6)
|
||||
qt_import_plugins(melonDS INCLUDE Qt::QModernWindowsStylePlugin)
|
||||
endif()
|
||||
target_link_options(melonDS PRIVATE -static)
|
||||
if (USE_VCPKG AND UNIX AND NOT APPLE)
|
||||
pkg_check_modules(ALSA REQUIRED IMPORTED_TARGET alsa)
|
||||
target_link_libraries(melonDS PRIVATE PkgConfig::ALSA)
|
||||
else()
|
||||
target_link_options(melonDS PRIVATE -static)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
target_include_directories(melonDS PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
|
Reference in New Issue
Block a user