Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
I'm been working with CLion when I would update his cmake version to use my default cmake binary, so : "
/usr/bin/cmake
".
When I entered cmake's path, there is two binaries matching the expression : "
/usr/bin/cmake
" and "
/usr/bin/cmake3
". It puzzled me with some questions.
What's the difference between that two and which one to use ?
–
–
–
As Thomas Sablik mentioned,
/usr/bin/cmake
is simply a symbolic link to
/usr/bin/cmake3
. This is the practice of
many
binaries in Linux - having a symbolic link to a specific version of a binary. In many cases, multiple binaries are installed simultaneously. When/If CMake 4 is released, presumably it will be placed in
/usr/bin/cmake4
, and the symbolic link updated by the installation.
However,
cmake
actually goes a step further in its versioning, because in your CMakeLists.txt, you must use the
cmake_minimum_required
statements, ensuring that your script will not run, unless it is run with a compatible version.
–
Thanks for contributing an answer to Stack Overflow!
-
Please be sure to
answer the question
. Provide details and share your research!
But
avoid
…
-
Asking for help, clarification, or responding to other answers.
-
Making statements based on opinion; back them up with references or personal experience.
To learn more, see our
tips on writing great answers
.