mirror of https://github.com/PCSX2/pcsx2.git
cmake: freebsd fixup
This commit is contained in:
parent
e096814697
commit
e04c890018
|
@ -119,10 +119,12 @@ else()
|
|||
## Use CheckLib package to find module
|
||||
include(CheckLib)
|
||||
|
||||
if(Linux)
|
||||
if(UNIX AND NOT APPLE)
|
||||
check_lib(EGL EGL EGL/egl.h)
|
||||
check_lib(X11_XCB X11-xcb X11/Xlib-xcb.h)
|
||||
check_lib(XCB xcb xcb/xcb.h)
|
||||
|
||||
if(Linux)
|
||||
check_lib(AIO aio libaio.h)
|
||||
# There are two udev pkg config files - udev.pc (wrong), libudev.pc (correct)
|
||||
# When cross compiling, pkg-config will be skipped so we have to look for
|
||||
|
@ -134,6 +136,8 @@ else()
|
|||
check_lib(LIBUDEV libudev libudev.h)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(PORTAUDIO_API)
|
||||
check_lib(PORTAUDIO portaudio portaudio.h pa_linux_alsa.h)
|
||||
endif()
|
||||
|
|
|
@ -1427,7 +1427,12 @@ if(Linux)
|
|||
ALSA::ALSA
|
||||
)
|
||||
elseif(UNIX AND NOT APPLE)
|
||||
target_link_libraries(PCSX2_FLAGS INTERFACE X11::X11)
|
||||
target_link_libraries(PCSX2_FLAGS INTERFACE
|
||||
X11::X11
|
||||
PkgConfig::XCB
|
||||
PkgConfig::EGL
|
||||
PkgConfig::X11_XCB
|
||||
)
|
||||
endif()
|
||||
|
||||
# Windows
|
||||
|
@ -1437,8 +1442,8 @@ if(Windows)
|
|||
${pcsx2WindowsHeaders})
|
||||
endif()
|
||||
|
||||
# MacOSX
|
||||
if(APPLE)
|
||||
# MacOSX/BSD
|
||||
if(UNIX AND NOT Linux)
|
||||
target_sources(PCSX2 PRIVATE
|
||||
${pcsx2OSXSources}
|
||||
${pcsx2LinuxHeaders}
|
||||
|
|
Loading…
Reference in New Issue