View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014422CMakeCMakepublic2013-09-18 07:032013-09-18 19:21
Reporterycollet 
Assigned ToAlex Neundorf 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformLinuxOSMintOS Version14 64 bits
Product VersionCMake 2.8.9 
Target VersionFixed in Version 
Summary0014422: CMAKE_ECLIPSE_VERSION is not taken into account
DescriptionI 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 ...
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0033840)
Eric NOULARD (developer)
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 (reporter)
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 (reporter)
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 (developer)
2013-09-18 16:46

Ok, I'll fix the case that the variable has already been set.
(0033847)
Alex Neundorf (developer)
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.

 Issue History
Date Modified Username Field Change
2013-09-18 07:03 ycollet New Issue
2013-09-18 07:14 Eric NOULARD Note Added: 0033840
2013-09-18 07:26 ycollet Note Added: 0033841
2013-09-18 09:46 ycollet Note Added: 0033844
2013-09-18 16:46 Alex Neundorf Note Added: 0033846
2013-09-18 16:46 Alex Neundorf Assigned To => Alex Neundorf
2013-09-18 16:46 Alex Neundorf Status new => acknowledged
2013-09-18 19:21 Alex Neundorf Note Added: 0033847
2013-09-18 19:21 Alex Neundorf Status acknowledged => closed
2013-09-18 19:21 Alex Neundorf Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team