Skip to content

Commit

Permalink
cMake/pre-commit: Manually format more sections
Browse files Browse the repository at this point in the history
  • Loading branch information
chennes committed Sep 8, 2024
1 parent 0b758e5 commit edf3959
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
7 changes: 5 additions & 2 deletions cMake/FindEigen3.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@
# * EIGEN3_INCLUDE_DIR - the eigen include directory
# * EIGEN3_VERSION - eigen version

# Copyright (c) 2006, 2007 Montel Laurent, <[email protected]> Copyright (c) 2008, 2009 Gael
# Guennebaud, <[email protected]> Copyright (c) 2009 Benoit Jacob <[email protected]>
# ~~~
# Copyright (c) 2006, 2007 Montel Laurent, <[email protected]>
# Copyright (c) 2008, 2009 Gael Guennebaud, <[email protected]>
# Copyright (c) 2009 Benoit Jacob <[email protected]>
# Redistribution and use is allowed according to the terms of the 2-clause BSD license.
# ~~~

if (NOT Eigen3_FIND_VERSION)
set (Eigen3_FIND_VERSION_MAJOR 3)
Expand Down
28 changes: 12 additions & 16 deletions cMake/FreeCAD_Helpers/InitializeFreeCADBuildOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,22 @@ macro (InitializeFreeCADBuildOptions)
# ================= All the options for the build process =================
# ==============================================================================

option (BUILD_FORCE_DIRECTORY "The build directory must be different to the source directory."
OFF)
option (
BUILD_GUI
"Build FreeCAD Gui. Otherwise you have only the command line and the Python import module."
ON)
# cmake-format: off
option (BUILD_FORCE_DIRECTORY "The build directory must be different to the source directory." OFF)
option (BUILD_GUI "Build FreeCAD Gui. Otherwise you have only the command line and the Python import module." ON)
option (FREECAD_USE_EXTERNAL_ZIPIOS "Use system installed zipios++ instead of the bundled." OFF)
option (FREECAD_USE_EXTERNAL_SMESH "Use system installed smesh instead of the bundled." OFF)
option (FREECAD_USE_EXTERNAL_KDL "Use system installed orocos-kdl instead of the bundled." OFF)
option (FREECAD_USE_EXTERNAL_FMT
"Use system installed fmt library if available instead of fetching the source." ON)
option (FREECAD_USE_EXTERNAL_ONDSELSOLVER
"Use system installed OndselSolver instead of git submodule." OFF)
option (FREECAD_USE_EXTERNAL_FMT "Use system installed fmt library if available instead of fetching the source." ON)
option (FREECAD_USE_EXTERNAL_ONDSELSOLVER "Use system installed OndselSolver instead of git submodule." OFF)
option (FREECAD_USE_FREETYPE "Builds the features using FreeType libs" ON)
option (FREECAD_BUILD_DEBIAN "Prepare for a build of a Debian package" OFF)
option (BUILD_WITH_CONDA "Set ON if you build FreeCAD with conda" OFF)
option (BUILD_DYNAMIC_LINK_PYTHON
"If OFF extension-modules do not link against python-libraries" ON)
option (INSTALL_TO_SITEPACKAGES
"If ON the freecad root namespace (python) is installed into python's site-packages" ON)
option (BUILD_DYNAMIC_LINK_PYTHON "If OFF extension-modules do not link against python-libraries" ON)
option (INSTALL_TO_SITEPACKAGES "If ON the freecad root namespace (python) is installed into python's site-packages" ON)
option (OCCT_CMAKE_FALLBACK "disable usage of occt-config files" OFF)
# cmake-format: on

if (WIN32 OR APPLE)
option (FREECAD_USE_QT_FILEDIALOG "Use Qt's file dialog instead of the native one." OFF)
else ()
Expand Down Expand Up @@ -131,10 +126,10 @@ macro (InitializeFreeCADBuildOptions)
set (CMAKE_MACOSX_RPATH TRUE)
endif (APPLE)

# cmake-format: off
option (BUILD_FEM "Build the FreeCAD FEM module" ON)
option (BUILD_SANDBOX "Build the FreeCAD Sandbox module which is only for testing purposes" OFF)
option (BUILD_TEMPLATE "Build the FreeCAD template module which is only for testing purposes"
OFF)
option (BUILD_TEMPLATE "Build the FreeCAD template module which is only for testing purposes" OFF)
option (BUILD_ADDONMGR "Build the FreeCAD addon manager module" ON)
option (BUILD_BIM "Build the FreeCAD BIM module" ON)
option (BUILD_DRAFT "Build the FreeCAD draft module" ON)
Expand Down Expand Up @@ -170,6 +165,7 @@ macro (InitializeFreeCADBuildOptions)
option (BUILD_VR "Build the FreeCAD Oculus Rift support (need Oculus SDK 4.x or higher)" OFF)
option (BUILD_CLOUD "Build the FreeCAD cloud module" OFF)
option (ENABLE_DEVELOPER_TESTS "Build the FreeCAD unit tests suit" ON)
# cmake-format: on

if (MSVC)
set (
Expand Down

0 comments on commit edf3959

Please sign in to comment.