Review Request 121391: Avoid inappropriate warning from gdb CMakeLists.txt

René J.V. Bertin rjvbertin at gmail.com
Mon Dec 8 20:54:54 UTC 2014



> On Dec. 8, 2014, 8:22 p.m., Milian Wolff wrote:
> > debuggers/gdb/CMakeLists.txt, line 33
> > <https://git.reviewboard.kde.org/r/121391/diff/1/?file=332273#file332273line33>
> >
> >     this is still wrong. the `HAVE_*` define should also be set, when the generator does not equal `"Ninja"`. Do something like
> >     
> >     `if(CMAKE_VERSION VERSION_GREATE "2.9" OR NOT CMAKE_GENERATOR MATCHES "Ninja")
> >       ...
> >     `

I think that my modification makes cmake behave like what the code tried to do, but you're saying that was not what should be done?
Maybe you should say more about the issue...
- are all cmake versions after 2.9 concerned?
- are all generators concerned?
- what `HAVE_` define should be set?


- René J.V.


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/121391/#review71583
-----------------------------------------------------------


On Dec. 8, 2014, 8:11 p.m., René J.V. Bertin wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/121391/
> -----------------------------------------------------------
> 
> (Updated Dec. 8, 2014, 8:11 p.m.)
> 
> 
> Review request for KDevelop.
> 
> 
> Repository: kdevelop
> 
> 
> Description
> -------
> 
> Warning about faulty ninja build files is inappropriate if the ninja generator isn't being used.
> 
> In addition, the warning should probably be suppressed when using cmake 3.0 and higher, or else it ought to be reworded ... (it prints for me with cmake 3.0.2)
> 
> 
> Diffs
> -----
> 
>   debuggers/gdb/CMakeLists.txt 8b78e56 
> 
> Diff: https://git.reviewboard.kde.org/r/121391/diff/
> 
> 
> Testing
> -------
> 
> With cmake 3.0.2 on OS X 10.9.4 (ought to be OS independent) and the Unix Makefiles generator.
> 
> 
> Thanks,
> 
> René J.V. Bertin
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20141208/84eff51e/attachment.html>


More information about the KDevelop-devel mailing list