CMake build flag fix

This commit is contained in:
Patryk Skowroński
2024-10-04 16:02:08 +02:00
parent ab0568061d
commit e37f52f329

View File

@@ -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)