fix CMake warning for doxygen target with CMake 3

Resolves #660.