FreeCAD / FreeCAD

This is the official source code of FreeCAD, a free and opensource multiplatform 3D parametric modeler.
https://www.freecad.org
Other
17.89k stars 3.81k forks source link

Disabling BUILD_MATERIAL in CMake breaks FreeCAD build #13922

Open phaseloop opened 3 weeks ago

phaseloop commented 3 weeks ago

Is there an existing issue for this?

Problem description

When disabling option BUILD_MATERIAL in CMake - during compilation following error occurs:

 ImportExportSettings.cpp
  ImportExportSettings.cpp
  mocs_compilation_Release.cpp
LINK : fatal error LNK1181: cannot open input file 'Materials.lib' [D:\release3\src\Mod\Part\App\Part.vcxproj]
  Automatic MOC and UIC for target E57Format

FreeCAD.exe binary is being built but when started - UI is non-functional (lacks all widgets and menus).

Judging from FreeCAD compiling documentation - CMake should raise an error when one of the dependencies is not enabled.

Full version info

0.22.0dev (main branch). Build on Windows 10 using Visual Studio 2022.

Subproject(s) affected?

None

Anything else?

No response

Code of Conduct

phaseloop commented 3 weeks ago

Same issue is with BUILD_ARCH - if disabled, it breaks Draft workbench which in turns breaks CAM workbench. Opening CAM Job object edit throws an error that Draft can't import arch_rc module.