Fixed CMake warning after upgrading to CMake 2.8.12.