From fd99dc50973183abb1ac35ef9724a6084e0e3bd5 Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Sun, 28 Feb 2021 22:51:02 +0000 Subject: [PATCH] Fix Apple link errors when disabling Vulkan Apple needs Cocoa and Quartz for Vulkan or OpenGL version --- renderdoc/CMakeLists.txt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/renderdoc/CMakeLists.txt b/renderdoc/CMakeLists.txt index 27e47a472..d43f072ff 100644 --- a/renderdoc/CMakeLists.txt +++ b/renderdoc/CMakeLists.txt @@ -26,13 +26,11 @@ elseif(APPLE) PRIVATE -lm PRIVATE -ldl) - if(ENABLE_VULKAN) - find_library(COCOA_LIBRARY Cocoa) - list(APPEND RDOC_LIBRARIES PRIVATE ${COCOA_LIBRARY}) + find_library(COCOA_LIBRARY Cocoa) + list(APPEND RDOC_LIBRARIES PRIVATE ${COCOA_LIBRARY}) - find_library(QUARTZCORE_LIBRARY QuartzCore) - list(APPEND RDOC_LIBRARIES PRIVATE ${QUARTZCORE_LIBRARY}) - endif() + find_library(QUARTZCORE_LIBRARY QuartzCore) + list(APPEND RDOC_LIBRARIES PRIVATE ${QUARTZCORE_LIBRARY}) if(ENABLE_GL) find_library(OPENGL_LIBRARY OpenGL)