[CMake] FindIce module and C++11

Rolf Eike Beer eike at sf-mail.de
Fri Aug 11 15:15:34 EDT 2017


Am Donnerstag, 10. August 2017, 10:28:31 schrieb rleigh at codelibre.net:
> On 2017-08-10 09:50, Jones J.W. wrote:
> > I'm building my code on Linux using the g++ flags "-std=c++11". This
> > means that I must link with the libIce++11 libraries instead of
> > libIce.
> > 
> > The FindIce module, however as no provision for choosing these
> > libraries thus resulting in unresolved symbols at link time.
> > 
> > I tried getting around the problem by simply listing Ice++11 as a
> > COMPONENT which works in Linux but the same CMakeLists.txt file in
> > Windows won't work as there is no Ice++11. Currently I have resolved
> > this by having two calls to the FindIce module inside an IF( MSVC )
> > conditional.
> > 
> > Would it be possible to add a flag to tell the FindIce module whether
> > C++11 is being used or not?
> 
> FindIce certainly needs an update for Ice 3.7.

To me this smells like an imported target with a generator expression that 
uses the C++11 or other lib depending on the used interface of the target. No 
idea if that is possible, but that would be the direction I would search in.

Greetings,

Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170811/4e98a73f/attachment.sig>


More information about the CMake mailing list