I’ve never used CMake before. I am using it now to generate files for a computer graphics tutorial which uses OpenGL. I believe the tutorial is trying to compile all of the example projects and opengl binaries using a CMakelists.txt.
step 1. I set the “where is the source code” line to the location of the cmakelists.txt file provided by the tutorial.
step 2. I set the "where to build binaries’ line to a directory called “build” in the same folder as the cmakelists.txt file. (the tutorial didn’t say where to put them)
step 3. I clicked the configure button
At that point it asked me to choose a generator from a list. I don’t even know what a generator is and a websearch didn’t help.
step 4. I arbitrarily chose a codeblocks generator because codeblocks is the IDE I use. There were 5 options for codeblocks generators.
At this point, CMake gave me error messages
CMake Deprecation Warning:
Support for “Extra Generators” likeCodeBlocks
is deprecated and will be removed from a future version of CMake. IDEs may
use the cmake-file-api(7) to view CMake-generated project build trees.CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.Update the VERSION argument value. Or, use the … syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.Or, add to try configuring anyway.
Configuring incomplete, errors occurred!
I don’t know what to do from here. I don’t know how to try a different generator. I don’t know how to add -DCMAKE_POLICY_VERSION_MINIMUM=3.5. Even if I knew how to try a different generator I have no frame of reference to decide which option to choose.