Review Request 120469: Deal with Glew not found, deduplicate linking to glew libs

Boudewijn Rempt boud at valdyas.org
Wed Oct 15 17:11:17 BST 2014


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

Ship it!


I'm sure it's fine... But sketch/gemini cannot work without opengl and glew anyway.

- Boudewijn Rempt


On Oct. 3, 2014, 1:05 a.m., Friedrich W. H. Kossebau wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/120469/
> -----------------------------------------------------------
> 
> (Updated Oct. 3, 2014, 1:05 a.m.)
> 
> 
> Review request for Calligra, Arjen Hiemstra, Dan Leinir Turthra Jensen, and Boudewijn Rempt.
> 
> 
> Repository: calligra
> 
> 
> Description
> -------
> 
> If Glew lib headers are not found, compilation fails with
> ```
> CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
> Please set them or make sure they are set and tested correctly in the CMake files:
> GLEW_LIBRARY (ADVANCED)
>     linked by target "kritaui" in directory [...]/calligra.master/krita/ui
>     linked by target "kritasketch" in directory [...]/calligra.master/krita/sketch
>     linked by target "kritasketch" in directory [...]/calligra.master/krita/sketch
>     linked by target "kritasketchlib" in directory [...]/calligra.master/krita/sketch
>     linked by target "kritasketchplugin" in directory [...]/calligra.master/krita/sketch
>     linked by target "kritagemini" in directory [...]/calligra.master/krita/gemini
>     linked by target "kritagemini" in directory [...]/calligra.master/krita/gemini
> 
> -- Configuring incomplete, errors occurred!
> ```
> Attached patch fixes that by only using GLEW_LIBRARY to set GLEW_LIBRARIES if found.
> It also removes a few duplicated listing of GLEW_LIBRARIES as libs to link to. I assume that duplication was not done on purpose, at least it links for me also this way.
> 
> 
> Diffs
> -----
> 
>   krita/CMakeLists.txt 18ba261 
>   krita/gemini/CMakeLists.txt 9f1f64b 
>   krita/ui/CMakeLists.txt 1aa4f64 
>   cmake/modules/FindGLEW.cmake 2d76562 
>   krita/sketch/CMakeLists.txt 46e0ba4 
> 
> Diff: https://git.reviewboard.kde.org/r/120469/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Friedrich W. H. Kossebau
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20141015/1b927a38/attachment.htm>


More information about the calligra-devel mailing list