CMake: Don't include non-windows files on non-windows

This commit is contained in:
TellowKrinkle 2021-12-12 00:03:00 -06:00 committed by tellowkrinkle
parent 962db4bfc4
commit 556c7ca080
1 changed files with 3 additions and 0 deletions

View File

@ -1488,6 +1488,9 @@ foreach(path IN LISTS RESOURCE_FILES)
if("${file}" MATCHES "^\\.") # Don't copy macOS garbage (mainly Finder's .DS_Store files) into application
continue()
endif()
if (NOT WIN32 AND "${path}" MATCHES "/dx11/") # Don't include unneccessary stuff
continue()
endif()
pcsx2_resource(${path} ${CMAKE_SOURCE_DIR}/bin/resources/)
endforeach()