mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 21:37:42 -07:00
Make linking librt conditional on it containing shm_open
Fixes building on UNIX platforms with no librt. Co-authored-by: Nadia Holmquist Pedersen <nadia@nhp.sh>
This commit is contained in:
parent
3c6359837d
commit
d1ff103259
@ -131,7 +131,10 @@ endif()
|
|||||||
if (WIN32)
|
if (WIN32)
|
||||||
target_link_libraries(core PRIVATE ole32 comctl32 ws2_32)
|
target_link_libraries(core PRIVATE ole32 comctl32 ws2_32)
|
||||||
elseif(NOT APPLE)
|
elseif(NOT APPLE)
|
||||||
target_link_libraries(core PRIVATE rt)
|
check_library_exists(rt shm_open "" NEED_LIBRT)
|
||||||
|
if (NEED_LIBRT)
|
||||||
|
target_link_libraries(core PRIVATE rt)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (ENABLE_JIT_PROFILING)
|
if (ENABLE_JIT_PROFILING)
|
||||||
|
Loading…
Reference in New Issue
Block a user