Ok, can you please start from an empty build directory and post here the full cmake configuration command and all of its output? (if I understand correctly the failure is already at cmake configuration).
Also see Posting code? Read this first! about posting code.
Cheers,
Enrico