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.

Home Page:https://ngsolve.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Visual Studio 2022 solution only builds the RelWithDebInfo configuration

SteveMaas1978 opened this issue · comments

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!

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.