From 0d4549a66e0489fdc664266602080ae534ef0ce2 Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Thu, 5 Aug 2021 00:01:38 -0500 Subject: [PATCH] cmake: Mark .inl files with the right type in Xcode --- pcsx2/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pcsx2/CMakeLists.txt b/pcsx2/CMakeLists.txt index a94732e0e3..3ba6f29368 100644 --- a/pcsx2/CMakeLists.txt +++ b/pcsx2/CMakeLists.txt @@ -1342,6 +1342,14 @@ if (APPLE) -P ${CMAKE_SOURCE_DIR}/cmake/Pcsx2PostprocessBundle.cmake ) add_dependencies(pcsx2-postprocess-bundle ${Output}) + + # Set the right file types for .inl files in Xcode + get_target_property(PCSX2_SOURCES PCSX2 SOURCES) + foreach(source IN LISTS PCSX2_SOURCES) + if("${source}" MATCHES "\\.(inl|h)$") + set_source_files_properties("${source}" PROPERTIES XCODE_EXPLICIT_FILE_TYPE sourcecode.cpp.h) + endif() + endforeach() endif() if(NOT DISABLE_SETCAP)