fix cmake macro.

(Cherry picked from commit f30497f358619533b7b68d0d86373139e98f3643)

Conflicts:
	src/CMakeLists.txt