Added cmake check for $NTA == $NUPIC.

Fixes #655.