Review Request 109569: Target compile definitions may have values.

Ben Wagner bungeman at gmail.com
Tue Mar 19 14:32:41 UTC 2013



> On March 18, 2013, 8:19 p.m., Aleix Pol Gonzalez wrote:
> > Good catch!
> > 
> > Can you please add a unit test for checking this?

I've added a test. Note that I don't have commit, so someone will need to commit this for me.


- Ben


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/109569/#review29469
-----------------------------------------------------------


On March 19, 2013, 5:27 a.m., Ben Wagner wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/109569/
> -----------------------------------------------------------
> 
> (Updated March 19, 2013, 5:27 a.m.)
> 
> 
> Review request for KDevelop.
> 
> 
> Description
> -------
> 
> The documentation at http://www.cmake.org/cmake/help/v2.8.8/cmake.html#prop_dir:COMPILE_DEFINITIONS states that COMPILE_DEFINITIONS is a list of VAR or VAR=value. When COMPILE_DEFINITIONS is set on a target, KDevelop currently only handles the 'VAR' case, but in the 'VAR=value' case makes the name of the define 'VAR=value' and sets the value to ''. This fixes that.
> 
> 
> Diffs
> -----
> 
>   projectmanagers/cmake/cmakemodelitems.cpp 3665ac4 
>   projectmanagers/cmake/tests/cmakemanagertest.h 7526d4c 
>   projectmanagers/cmake/tests/cmakemanagertest.cpp cd2a459 
>   projectmanagers/cmake/tests/manual/target_defines/CMakeLists.txt PRE-CREATION 
>   projectmanagers/cmake/tests/manual/target_defines/main.cpp PRE-CREATION 
>   projectmanagers/cmake/tests/manual/target_defines/target_defines.kdev4 PRE-CREATION 
> 
> Diff: http://git.reviewboard.kde.org/r/109569/diff/
> 
> 
> Testing
> -------
> 
> Built and ran, now the correct defines show in pop-ups and the correct code is parsed for editing.
> 
> 
> File Attachments
> ----------------
> 
> format-diff
>   http://git.reviewboard.kde.org/media/uploaded/files/2013/03/19/0001-Target-compile-definitions-may-have-values.patch
> 
> 
> Thanks,
> 
> Ben Wagner
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20130319/3e5c83ea/attachment.html>


More information about the KDevelop-devel mailing list