MantisBT - CMake
View Issue Details
0015771CMakeCMakepublic2015-10-07 04:322016-03-07 09:12
iainmeikle 
geoffviola 
normalminoralways
closedfixed 
PCWindows7
CMake 3.3 
CMake 3.5CMake 3.5 
0015771: GHS-MULTI Generator Uses Macros in GPJs Uncompatible With Older Versions
The GHS-MULTI generator adds the following to generated GPJ files:

{optgroup=GhsCommonOptions}.

Other than this, the GPJ files appear to work OK with older versions. This can be alleviated by adding the following instead.

{isdefined(optgroup)}{optgroup=GhsCommonOptions}
Use quite an old version of their tool chain.
Unable to provide specific version information for the tool chain used.
No tags attached.
patch 0001-Removed-extra-flag-to-GHS-MULTI-compiler.patch (1,868) 2015-10-14 02:30
https://public.kitware.com/Bug/file/5541/0001-Removed-extra-flag-to-GHS-MULTI-compiler.patch
Issue History
2015-10-07 04:32iainmeikleNew Issue
2015-10-09 00:57geoffviolaNote Added: 0039553
2015-10-09 04:02iainmeikleNote Added: 0039555
2015-10-14 02:30geoffviolaFile Added: 0001-Removed-extra-flag-to-GHS-MULTI-compiler.patch
2015-10-14 02:40geoffviolaNote Added: 0039598
2015-10-15 10:08Brad KingNote Added: 0039615
2015-10-15 10:09Brad KingStatusnew => resolved
2015-10-15 10:09Brad KingResolutionopen => fixed
2015-10-15 10:09Brad KingFixed in Version => CMake 3.5
2015-10-15 10:09Brad KingTarget Version => CMake 3.5
2015-10-15 10:10Brad KingAssigned To => geoffviola
2016-03-07 09:12Robert MaynardNote Added: 0040620
2016-03-07 09:12Robert MaynardStatusresolved => closed

Notes
(0039553)
geoffviola   
2015-10-09 00:57   
I don't have the same version of the tool chain as you. Can you tell me what version of the compiler, integrity, and MULTI that you have? If I attach a patch, can you test it?
(0039555)
iainmeikle   
2015-10-09 04:02   
I cannot give you the version information. I can look at testing a patch, but please bear in mind this may take me a while to complete.
(0039598)
geoffviola   
2015-10-14 02:40   
I couldn't get {isdefined(optgroup)}{optgroup=GhsCommonOptions} to work in my .gpj files. Instead, I attached a patch so that CMake will not produce {optgroup=GhsCommonOptions} at all. The flag was added to match an old project file, but it doesn't seem necessary.
(0039615)
Brad King   
2015-10-15 10:08   
GHS: Remove extra flag to GHS MULTI compiler
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ce7ccafc [^]
(0040620)
Robert Maynard   
2016-03-07 09:12   
Closing resolved issues that have not been updated in more than 4 months.