cmake 2.8
Hi, My cmake version is 2.8, I tried to update it and ccmake to 3.0,but there is still a little problem. The question is : Can i just cmake the CMakeLists.txt in the root dir(version is 2.8),then make,without set required variables. If i do this,will it work correctly? Or can you generate the makefile for linux -_- Thank you a lot.
Hi @guo253,
if I remember correctly, cmake 3.0+ is required just because of some definitions in CMakeLists.txt. So, it can be modified in such way, that it will compile even on cmake 2.8. I will soon look at all the CMakeLists.txt files and maybe create some backward compatibility version of them.
However, maybe your problem can be solved easier by upgrading to 3.0+ version. What was exactly your problem with that? I was using version 2.8 and then upgraded quite smoothly...
Thank you for your answer. If i installed cmake and ccmake using software center or aptitude,the version was 2.8(My ubuntu is 14.04).So i installed cmake(version 3.0.2) by handcraft successfully,but when i installed ccmake(version 3.0.2)by handcraft,it can't find cmake(version 3.0.2) which was dependent package. I also upgraded the source and use cmd 'aptitude update',but there was too many softwares needed to be update. I look forward to your method that upgrade the cmake and ccmake.I have download the .tar.gz for cmake and .deb for ccmake. Thank you again.
Guo253, I had a similar problem. Installed CMake 3 from source on a different path and called it, and everything works.
My OS is Ubuntu 14.04 LTS, and the CMake version is 2.8. But I "sudo mkdir /opt/CMake/cmake-3.5", and then install CMake-3.5 in /opt/CMake/cmake-3.5, When I want to use cmake-2.8 to compile project: cmake .. is ok. When I want to use cmake-3.5 to compile this project:
- Ctrl+Alt+T
- cd build
- /opt/CMake/cmake-3.5/bin/cmake ..
- make It's OK.