8 Commits

Author SHA1 Message Date
Ben Boeckel
1020b99948 cmake/generate_version_file: catch errors at the end
The directory-based extraction can fail if the directory was renamed
before netgen was configured (e.g., CMake's ExternalProject will
generally rename the top-level directory to `src` for consistency).

If the directory name extraction failed, an empty string ended up in the
binary which causes runtime failures when trying to parse as an integer.
2021-03-18 10:13:14 -04:00
Ben Boeckel
9d94294f30 cmake/generate_version_file: strip whitespace from version.txt contents
This avoids having to remember to use `echo -n` or other such bits.
2021-03-18 10:12:42 -04:00
Matthias Hochsteger
cb610b9b04 NETGEN_CHECK_RANGE -> NETGEN_USE_CHECK_RANGE in netgen_config.hpp (macro name already used) 2020-09-09 11:53:05 +02:00
Matthias Hochsteger
52b372718c generate netgen_config.hpp containing all cmake options 2020-09-09 11:33:06 +02:00
Matthias Hochsteger
fa1a5d11ee Fix version file generation 2020-07-25 08:41:17 +02:00
Matthias Hochsteger
68f5605866 Fix version parsing in conda build 2020-07-24 17:13:22 +02:00
Matthias Hochsteger
dcc0484be0 install netgen_version.hpp, set version in Archive 2020-07-23 16:25:06 +02:00
Matthias Hochsteger
34a6777f49 add file generate_version_file.cmake 2020-05-18 17:54:09 +02:00