Move configuration of global headers
authorMark Abraham <mark.j.abraham@gmail.com>
Sat, 25 Apr 2020 14:11:50 +0000 (16:11 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Sat, 25 Apr 2020 16:45:33 +0000 (18:45 +0200)
commitd3f44838c82b2c84aea2c75a29a25976ea381977
tree829f7c437278793137cdc98ecde432517b0fe1a1
parent50244651f6e653b658b9a55e8adcf1d7173fe7c4
Move configuration of global headers

Previously it was possible to get a different result from
  cmake .. && make && make install
than one got from
  cmake .. && cmake .. && make && make install
because the lmfit detection ran after config.h was generated,
so HAVE_LMFIT changed value from one cmake to the next, triggering
a rebuild of all source files that depended on config.h. lmfit
is supposed to fall back on the internal version, but did not,
so this is buggy. It's also very inefficient with compilation
in some workflows.
src/CMakeLists.txt