mirror of https://github.com/PCSX2/pcsx2.git
cmake: Fix build on FreeBSD. (#7080)
${pcsx2OSXSources} cannot be built on FreeBSD, so remove them.
This commit is contained in:
parent
18288544a5
commit
6229148307
|
@ -1583,8 +1583,14 @@ endif()
|
||||||
|
|
||||||
# MacOSX/BSD
|
# MacOSX/BSD
|
||||||
if(UNIX AND NOT Linux)
|
if(UNIX AND NOT Linux)
|
||||||
|
if(APPLE)
|
||||||
|
target_sources(PCSX2 PRIVATE
|
||||||
|
${pcsx2OSXSources})
|
||||||
|
else()
|
||||||
|
target_sources(PCSX2 PRIVATE
|
||||||
|
${pcsx2FreeBSDSources})
|
||||||
|
endif()
|
||||||
target_sources(PCSX2 PRIVATE
|
target_sources(PCSX2 PRIVATE
|
||||||
${pcsx2OSXSources}
|
|
||||||
${pcsx2LinuxHeaders}
|
${pcsx2LinuxHeaders}
|
||||||
${pcsx2USBNullSources}
|
${pcsx2USBNullSources}
|
||||||
${pcsx2USBNullHeaders})
|
${pcsx2USBNullHeaders})
|
||||||
|
@ -1603,12 +1609,6 @@ else()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "NetBSD")
|
|
||||||
target_sources(PCSX2 PRIVATE
|
|
||||||
${pcsx2FreeBSDSources}
|
|
||||||
${pcsx2LinuxHeaders})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
target_link_libraries(PCSX2_FLAGS INTERFACE
|
target_link_libraries(PCSX2_FLAGS INTERFACE
|
||||||
common
|
common
|
||||||
imgui
|
imgui
|
||||||
|
|
Loading…
Reference in New Issue