From f27fbbb4a6614b273301449d35edb3bcfd38c81a Mon Sep 17 00:00:00 2001 From: Oliver James Date: Wed, 16 Oct 2024 12:42:41 +0100 Subject: [PATCH] CMake: Don't configure xcode entitlements on non-Apple platforms --- extras/Build/CMake/JUCEUtils.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extras/Build/CMake/JUCEUtils.cmake b/extras/Build/CMake/JUCEUtils.cmake index 127fe30ae5..a6b45504af 100644 --- a/extras/Build/CMake/JUCEUtils.cmake +++ b/extras/Build/CMake/JUCEUtils.cmake @@ -683,6 +683,10 @@ function(_juce_generate_icon source_target dest_target) endfunction() function(_juce_add_xcode_entitlements source_target dest_target) + if(NOT APPLE) + return() + endif() + get_target_property(juce_kind_string ${dest_target} JUCE_TARGET_KIND_STRING) get_target_property(input_info_file ${source_target} JUCE_INFO_FILE)