[CMake] [cmake-developers] CFLAGS merged during CMake process
Sriram Rajan
sriram.r at vit.in
Sat Jan 31 13:39:03 EST 2015
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.
Thanks,
Sriram
On Sat, Jan 31, 2015 at 04:52 PM, Rolf Eike Beer wrote:Sriram Rajan wrote:
I observed that Cflags were corrupted during the cmake
I am working on a simple libxml example code from
http://www.xmlsoft.org/examples/xpath2.c (http://www.xmlsoft.org/examples/xpath2.c)
(http://www.xmlsoft.org/examples/xpath2.c (http://www.xmlsoft.org/examples/xpath2.c)). For some reason, my current
working directory is prepended without a space ' '.
CMakeFiles/nmapWrapper.dir/flags.make:C_FLAGS =
-I/Users/sriram/xmlparse/-I/Appl... Removing this from the flags results in
a successfull compilation: $ cc
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Deve
loper/SDKs/MacOSX10.10.sdk/usr/include/libxml2 `xml2-config --libs` xpath2.c
-o xpath2 Thanks,
Try removing the quotes in include_directories().
Also, this has nothing to do with CMake development, so I'll redirect this to
the users list.
Eike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150131/5fb80787/attachment.html>
More information about the CMake
mailing list