dftlibs / xcfun

XCFun: A library of exchange-correlation functionals with arbitrary-order derivatives
https://dftlibs.org/xcfun/
Mozilla Public License 2.0
57 stars 32 forks source link

define XC_MAX_ORDER in cmake config #6

Closed sunqm closed 8 years ago

sunqm commented 8 years ago

Hi,

It'd be better if XC_MAX_ORDER was predefined in CMakeLists.txt instead of hardcode in the head file. Setting the highest order with command line like "cmake -DXC_MAX_ORDER=2" is very useful for me.

bast commented 8 years ago

I agree that this would be good. I can take care of that. Since we also support Makefiles my idea is to use a hardcoded limit only if it was not set from the outside (CMake or Makefile).