Hi,
When trying CMake tutorial, Code for Step 4 needs update. Please refer to here for possible update CMake tutorial Step 4 install example is not working as expected - Stack Overflow
Thanks
Surya
Hi,
When trying CMake tutorial, Code for Step 4 needs update. Please refer to here for possible update CMake tutorial Step 4 install example is not working as expected - Stack Overflow
Thanks
Surya
See vre’s answer on SO:
Your cmake is too old for the
--install
command syntax.--install
was added to CMake in version 3.15 so you need to install a newer version
Thats right. I resolved the issue. What I’m saying is tutorial code for Step 4 needs to be updated.
This line:
cmake_minimum_required(VERSION 3.10)
needs to be changed to:
cmake_minimum_required(VERSION 3.15)
?
Thanks for the great tool
Well, the code in the CMakeLists.txt
file itself works fine with 3.10. It is only the command-line interface described in the tutorial that requires 3.15+. The tutorial step 4 text already says:
Then run the install step by using the
install
option of thecmake
command (introduced in 3.15, older versions of CMake must usemake install
) from the command line.