Fixed CMake policy bug