From 878cd2f6d6d18e8b9fd5954e51efb8b6118e8be8 Mon Sep 17 00:00:00 2001 From: idz Date: Sun, 13 Jul 2025 01:04:07 -0700 Subject: [PATCH] Configuration - Fix link errors on macOS when not building using vcpkg (#609) Moved APPLE CSF definitions into general conditions. CSF redefinition for APPLE is used for framework detection after the project initialization. --- CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a67b70d823..2dba1d4307 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -776,10 +776,11 @@ endif() # the platform specific variables. if (BUILD_USE_VCPKG) project (OCCT) - if (APPLE) - # set Apple specific variables - occt_set_apple_csf_vars() - endif() +endif() + +if (APPLE) + # set Apple specific variables + occt_set_apple_csf_vars() endif() # copying clang-format file to the root of the project -- 2.39.5