Review Request 121083: Replace manual export files with CMake's generate_export_header

Hugo Pereira Da Costa hugo.pereira at free.fr
Mon Nov 24 07:50:39 GMT 2014



> On Nov. 22, 2014, 12:18 a.m., Harald Sitter wrote:
> > This breaks the kde4 build as ECM is not being used there and generate_export_header is not available without ECM.
> 
> Andrius da Costa Ribas wrote:
>     generate_export_header isn't in ECM, but in cmake itself (http://www.cmake.org/cmake/help/v3.0/module/GenerateExportHeader.html). Does kde4 required cmake version not support it? Should I revert this commit?
> 
> Harald Sitter wrote:
>     Ah, I was not aware of that. So the solution probably is to move the include(GenerateExportheader) line outside the if-else for kf5/kde4
> 
> Albert Astals Cid wrote:
>     Andrius: kdelibs4 has to work on cmake 2.8.9, when was that introduced?
> 
> Harald Sitter wrote:
>     If kubuntu packaging can be trusted it was there before that (e.g. was already in 2.8.7)
> 
> Thomas Lübking wrote:
>     http://www.cmake.org/cmake/help/v2.8.9/cmake.html#module:GenerateExportHeader

I'm running cmake 3.1 here and still can't get oxygen to build in KDE4 mode anyway.
Cmake aborts with: Unknown CMake command "generate_export_header"
So surely something seems broken with this patch (missing module include ?)

Can you either test compilation with option -DUSE_KDE4=1, and fix, or provide instructions, or revert ? 

Thanks ! 

Hugo


- Hugo


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


On Nov. 21, 2014, 10:47 p.m., Andrius da Costa Ribas wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/121083/
> -----------------------------------------------------------
> 
> (Updated Nov. 21, 2014, 10:47 p.m.)
> 
> 
> Review request for kde-workspace and kdewin.
> 
> 
> Repository: oxygen
> 
> 
> Description
> -------
> 
> These files currently use  
> 
> ```
> __attribute__((visibility("...")))
> ```
> 
> which doesn't work on MSVC.
> 
> 
> Diffs
> -----
> 
>   liboxygen/oxygen_config_export.h 02ea29d 
>   liboxygen/oxygen_export.h b8877a0 
>   liboxygen/CMakeLists.txt 69b7bd2 
> 
> Diff: https://git.reviewboard.kde.org/r/121083/diff/
> 
> 
> Testing
> -------
> 
> Builds with msvc 2013 64bit
> 
> 
> Thanks,
> 
> Andrius da Costa Ribas
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20141124/503b3cf2/attachment.htm>


More information about the kde-core-devel mailing list