MantisBT - CMake
View Issue Details
0014422CMakeCMakepublic2013-09-18 07:032013-09-18 19:21
ycollet 
Alex Neundorf 
normalminoralways
closedfixed 
LinuxMint14 64 bits
CMake 2.8.9 
 
0014422: CMAKE_ECLIPSE_VERSION is not taken into account
I tried to set CMAKE_ECLIPSE_VERSION to a specific version and it is never taken into account.
When searching on the net, I noticed that _ECLIPSE_VERSION is the only variable which is taken into account to set the eclipse version.
I am wondering if this is a typo ...
No tags attached.
Issue History
2013-09-18 07:03ycolletNew Issue
2013-09-18 07:14Eric NOULARDNote Added: 0033840
2013-09-18 07:26ycolletNote Added: 0033841
2013-09-18 09:46ycolletNote Added: 0033844
2013-09-18 16:46Alex NeundorfNote Added: 0033846
2013-09-18 16:46Alex NeundorfAssigned To => Alex Neundorf
2013-09-18 16:46Alex NeundorfStatusnew => acknowledged
2013-09-18 19:21Alex NeundorfNote Added: 0033847
2013-09-18 19:21Alex NeundorfStatusacknowledged => closed
2013-09-18 19:21Alex NeundorfResolutionopen => fixed

Notes
(0033840)
Eric NOULARD   
2013-09-18 07:14   
CMAKE_ECLIPSE_VERSION is set (in CACHE) by Modules/CMakeFindEclipseCDT4.cmake
which is automatically included by
Modules/CMakeSystemSpecificInformation.cmake
which gets included in Source/cmGlobalGenerator.cxx.

So I don't know whether if it's meant to be overidden by the user.
Alex (Neundorf) should know that.

Could you explain and/or give an example of waht you want to do?
(0033841)
ycollet   
2013-09-18 07:26   
Sorry, now it works when I use -DCMAKE_ECLIPSE_VERSION=3.7.
The first time I tried, when I open cmakecache.txt using cmake-gui, CMAKE_ECLIPSE_VERSION was still set to 3.6.
You can close the bug. If I am able to reproduce it, I will reopen.
(0033844)
ycollet   
2013-09-18 09:46   
Hello,

Finally, I reproduced the problem. Here is my cmake command:

cmake -DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=TRUE -DCMAKE_ECLIPSE_VERSION=3.7 -G "Eclipse CDT4 - Unix Makefiles" .

And here is the message I've got:

-- Could not determine Eclipse version, assuming at least 3.6 (Helios). Adjust CMAKE_ECLIPSE_VERSION if this is wrong.
-- Found Git: /usr/bin/git (found version "1.7.10.4")
-- Found Java: /opt/jdk1.6.0_45/bin/java (found version "1.6.0.45")
-- ...

But when I use cmake-gui to look at CMakeCache.txt, the CMAKE_ECLIPSE_VERSION is set to 3.7 (and not to 3.6 like the "warning" message says).
(0033846)
Alex Neundorf   
2013-09-18 16:46   
Ok, I'll fix the case that the variable has already been set.
(0033847)
Alex Neundorf   
2013-09-18 19:21   
Fixed and merged into next.
I don't know whether this will still make it into 2.8.12, otherwise it will be 2.8.13 then.