Fix the cmake ordering