[Kmymoney-devel] Review Request 123932: Support for CMake 3.2+

Cristian Oneț onet.cristian at gmail.com
Sat Jun 6 11:07:40 UTC 2015



> On Iunie 6, 2015, 10:54 a.m., Cristian Oneț wrote:
> > CMakeLists.txt, line 61
> > <https://git.reviewboard.kde.org/r/123932/diff/1/?file=378286#file378286line61>
> >
> >     CMake Error at CMakeLists.txt:61 (add_executable):
> >       add_executable cannot create imported target "Qt4::moc" because another
> >       target with the same name already exists.
> >     
> >     cmake --version
> >     cmake version 2.8.12.2

Try, this on your system, if it works this has a 'Ship it' from me:
```
if(NOT TARGET Qt4::moc)
  add_executable(Qt4::moc IMPORTED)
  set_target_properties(Qt4::moc PROPERTIES IMPORTED_LOCATION "${QT_MOC_EXECUTABLE}")
endif(NOT TARGET Qt4::moc)
```


- Cristian


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


On Mai 29, 2015, 6:53 a.m., Thomas Baumgart wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/123932/
> -----------------------------------------------------------
> 
> (Updated Mai 29, 2015, 6:53 a.m.)
> 
> 
> Review request for KMymoney, Alvaro Soliverez, Cristian Oneț, and Marko Käning.
> 
> 
> Repository: kmymoney
> 
> 
> Description
> -------
> 
> Recently my distro updated cmake to version 3.2.2 and I had trouble to build KMyMoney. The attached patch solves the problem for me, but before I add it to the repository for all others, I want to make sure it works with older versions of CMake (e.g. 2.8) as well.
> 
> So please give it a spin and report your findings. Thank you in advance.
> 
> 
> Diffs
> -----
> 
>   CMakeLists.txt d11b562 
> 
> Diff: https://git.reviewboard.kde.org/r/123932/diff/
> 
> 
> Testing
> -------
> 
> Ran it with cmake 3.2
> 
> 
> Thanks,
> 
> Thomas Baumgart
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20150606/b94d82f5/attachment.html>


More information about the KMyMoney-devel mailing list