Fix Linux build (2)

This commit is contained in:
squidbus 2025-05-12 21:58:26 -07:00 committed by GitHub
parent 55df4979c5
commit 9c300900f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1094,9 +1094,12 @@ if (ENABLE_DISCORD_RPC)
target_compile_definitions(shadps4 PRIVATE ENABLE_DISCORD_RPC)
endif()
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
# Optional due to https://github.com/shadps4-emu/shadPS4/issues/1704
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND ENABLE_USERFAULTFD)
if (ENABLE_USERFAULTFD)
target_compile_definitions(shadps4 PRIVATE ENABLE_USERFAULTFD)
endif()
target_link_libraries(shadps4 PRIVATE uuid)
endif()