NGSolve / ngsolve

Netgen/NGSolve is a high performance multiphysics finite element software. It is widely used to analyze models from solid mechanics, fluid dynamics and electromagnetics. Due to its flexible Python interface new physical equations and solution algorithms can be implemented easily.
https://ngsolve.org/
GNU Lesser General Public License v2.1
436 stars 79 forks source link

Visual Studio 2022 solution only builds the RelWithDebInfo configuration #66

Closed SteveMaas1978 closed 8 months ago

SteveMaas1978 commented 11 months ago

Hi, I am trying to build the source code from scratch (I only want netgen, but it was recommended somewhere to build ngsolve instead). I use the cmake file to generate the solution for Visual Studio 2022. The default configuration selected is Debug and the build succeeds without errors, but the files are placed in a folder called RelWithDebInfo. Then, when I choose the Release configuration, it still puts the final files in that same folder. So, it seems to me that the build is not respecting the selected configuration. Is there a solution to this? Thanks!

mhochsteger commented 8 months ago

The CMake project also installs dependencies (like netgen) automatically. Due to this Superbuild structure the build configuration cannot be respected at all levels. To get a consistent configuration, you can pass '-DCMAKE_BUILD_TYPE=Debug' when configuring ngsolve. This setting is passed to the dependencies (like netgen) aswell.

Alternatively, you can configure with '-DUSE_SUPERBUILD=OFF', this will result in just one solution and behave as you expect it, but you have to take care of all dependencies yourself.