Closed golosio closed 2 years ago
You may be interested to have a look at the NEST cmake files. There are a number of configuration variables that switch behavior and algorithms, and a similar solution may be useful also here. Big plus argument for using cmake options is the unmodified source code and seamless integration with packaging. The configure options are just translated to #define
-like preprocessing variables with a short cmake block, see for example the NEST_PROCESS_WITH_DETAILED_TIMERS
option.
Thanks @terhorstd. The conversion of the build process to cmake is ongoing, see #22. In this particular case, we have now just decided to remove second option completely from the source files and leave only its heritage in the git history.
Added bash scripts to switch the source code from ring version to static index version and vice versa.