]> OCCT Git - occt.git/commitdiff
Configuration - Fix link errors on macOS when not building using vcpkg (#609)
authoridz <idz@iosdeveloperzone.com>
Sun, 13 Jul 2025 08:04:07 +0000 (01:04 -0700)
committerGitHub <noreply@github.com>
Sun, 13 Jul 2025 08:04:07 +0000 (09:04 +0100)
Moved APPLE CSF definitions into general conditions.
CSF redefinition for APPLE is used for framework detection after the project initialization.

CMakeLists.txt

index a67b70d823fcbe5cf56759dcc76009f6c65888a5..2dba1d43076215d190cf2df9577aedccfeb965c7 100644 (file)
@@ -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