Note to self: test before commiting.
Include CMAKE_CURRENT_BINARY_DIR before everything else.

Otherwise it fails to include proper configure.h on deprecated build.