From: idz Date: Sun, 13 Jul 2025 08:04:07 +0000 (-0700) Subject: Configuration - Fix link errors on macOS when not building using vcpkg (#609) X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=878cd2f6d6d18e8b9fd5954e51efb8b6118e8be8;p=occt.git 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. --- 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