From e4662f91c74ec20722b080c00b35515d7d6528d2 Mon Sep 17 00:00:00 2001 From: Colin Cornaby Date: Sun, 5 Nov 2023 22:44:00 -0800 Subject: [PATCH] Moving MPS link to public definition in Metal pipeline --- Sources/Plasma/Apps/plClient/CMakeLists.txt | 1 - Sources/Plasma/FeatureLib/pfMetalPipeline/CMakeLists.txt | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/Plasma/Apps/plClient/CMakeLists.txt b/Sources/Plasma/Apps/plClient/CMakeLists.txt index 223ae8ad36..7dd46ce989 100644 --- a/Sources/Plasma/Apps/plClient/CMakeLists.txt +++ b/Sources/Plasma/Apps/plClient/CMakeLists.txt @@ -180,7 +180,6 @@ if(APPLE) ) target_link_libraries(plClient PRIVATE "-framework Cocoa") target_link_libraries(plClient PRIVATE "-framework QuartzCore") - target_link_libraries(plClient PRIVATE "-framework MetalPerformanceShaders") install( TARGETS plClient DESTINATION client diff --git a/Sources/Plasma/FeatureLib/pfMetalPipeline/CMakeLists.txt b/Sources/Plasma/FeatureLib/pfMetalPipeline/CMakeLists.txt index 8f3a9cb084..9d286f3218 100644 --- a/Sources/Plasma/FeatureLib/pfMetalPipeline/CMakeLists.txt +++ b/Sources/Plasma/FeatureLib/pfMetalPipeline/CMakeLists.txt @@ -46,11 +46,13 @@ target_link_libraries(pfMetalPipeline pnNucleusInc plPipeline "-framework Metal" + "-framework MetalPerformanceShaders" PRIVATE plStatusLog INTERFACE pnFactory ) + target_include_directories(pfMetalPipeline PUBLIC ${metalcpp_SOURCE_DIR}) target_include_directories(pfMetalPipeline PUBLIC "ShaderSrc")