[CMake] [cmake-developers] CFLAGS merged during CMake process

Rolf Eike Beer eike at sf-mail.de
Sat Jan 31 15:02:37 EST 2015


Am Samstag, 31. Januar 2015, 18:39:03 schrieb Sriram Rajan:
> Hi Rolf,
> 	Thanks for forwarding this e-mail on my behalf. I figured out the
> solution.. I was using `xml2-config --cflags` for the include files. The
> result was pre-pended with a "-I", follwed by include-path. Using sed to
> remove this "-I" worked.

Why don't use simply use

find_package(LibXml2)
include_directories(${LIBXML2_INCLUDE_DIR})

Greetings,

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


More information about the CMake mailing list