From 9ab654f29b9a409ca8d3a43b591b947c7499754e Mon Sep 17 00:00:00 2001 From: David Andrs Date: Tue, 16 Apr 2024 23:29:19 -0600 Subject: [PATCH] Fixing FindMETAL.cmake (#751) Closes #674 --- cmake/FindMETAL.cmake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmake/FindMETAL.cmake b/cmake/FindMETAL.cmake index cfbdcfb3a..e1251246e 100644 --- a/cmake/FindMETAL.cmake +++ b/cmake/FindMETAL.cmake @@ -20,7 +20,5 @@ if(METAL_FOUND AND NOT TARGET OCCA::depends::METAL) # Create our wrapper imported target # Put it in the OCCA namespace to make it clear that we created it. add_library(OCCA::depends::METAL INTERFACE IMPORTED) - set_target_properties(OCCA::depends::METAL PROPERTIES - INTERFACE_LINK_LIBRARIES "${METAL_LIBRARY} ${CORE_SERVICES} ${APP_KIT}" - ) + target_link_libraries(OCCA::depends::METAL INTERFACE ${METAL_LIBRARY} ${CORE_SERVICES} ${APP_KIT}) endif()