cmake: Fix build on FreeBSD. (#7080)

${pcsx2OSXSources} cannot be built on FreeBSD, so remove them.
This commit is contained in:
Ganael Laplanche 2022-09-27 14:40:19 +02:00 committed by GitHub
parent 18288544a5
commit 6229148307
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -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