There are people on the Internet who say to change the code and change the CMakeList.txt file, but I tried it to no avail.
solution:
Download and install version 2.1 of ceres-solver from below, and compile successfully.
http://ceres-solver.org/installation.html http://ceres-solver.org/installation.html