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
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to