From 8bb3d719cf4c50b33e2041013bb94ed6279972f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Skowro=C5=84ski?= Date: Fri, 4 Oct 2024 16:02:08 +0200 Subject: [PATCH] CMake build flag fix --- cMake/FreeCAD_Helpers/InitializeFreeCADBuildOptions.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cMake/FreeCAD_Helpers/InitializeFreeCADBuildOptions.cmake b/cMake/FreeCAD_Helpers/InitializeFreeCADBuildOptions.cmake index 65711b74f8..76504e0fe7 100644 --- a/cMake/FreeCAD_Helpers/InitializeFreeCADBuildOptions.cmake +++ b/cMake/FreeCAD_Helpers/InitializeFreeCADBuildOptions.cmake @@ -153,7 +153,9 @@ macro(InitializeFreeCADBuildOptions) option(BUILD_FEM_NETGEN "Build the FreeCAD FEM module with the NETGEN mesher" ON) option(FREECAD_USE_PCL "Build the features that use PCL libs" OFF) # 3/5/2021 current LibPack uses non-C++17 FLANN option(FREECAD_USE_3DCONNEXION "Use the 3D connexion SDK to support 3d mouse." ON) - elseif(APPLE) + elseif(APPLE AND FREECAD_3DCONNEXION_SUPPORT STREQUAL "NavLib") + option(FREECAD_USE_3DCONNEXION "Use the 3D connexion SDK to support 3d mouse." ON) + elseif(APPLE AND FREECAD_3DCONNEXION_SUPPORT STREQUAL "Raw input") find_library(3DCONNEXIONCLIENT_FRAMEWORK 3DconnexionClient) if(IS_DIRECTORY ${3DCONNEXIONCLIENT_FRAMEWORK}) option(FREECAD_USE_3DCONNEXION "Use the 3D connexion SDK to support 3d mouse." ON)