Switch back to functions.

Determined what the problem is. We have an intermediate CMakeLists.txt
file in Spire.