[CMake] Eclipse generator - scanner-discovered include pathsand pre-processor symbols
Chatterjee, Shash
schatterjee at camber.com
Tue Mar 29 12:21:16 EDT 2011
Hi Alex,
Thanks for the change. The version you sent didn't end up working here (with just a CXX project). The line to set the compiler is checking for "CXX" but, at least on my system, "${_lang}" is set to "c++". Once I changed the line to check for "CXX" or "c++", it worked fine. I also noticed that /usr/include was not being added, and it was because the regexp was skipping the last line of includes. I have modified the regexp slightly, and that worked as well. I have attached the changed file for you to compare, I am not sure if the changes are just specific to my system.
Thanks,
Shash
-----Original Message-----
From: Alexander Neundorf [mailto:a.neundorf-work at gmx.net]
Sent: Sun 3/27/2011 11:24 AM
To: cmake at cmake.org
Cc: Chatterjee, Shash
Subject: Re: [CMake] Eclipse generator - scanner-discovered include pathsand pre-processor symbols
Ah, indeed, it was using CMAKE_C_COMPILER also when finding out the C++ stuff,
which works, but only if CMAKE_C_COMPILER is actually set.
Please try the attached version, this should also work with your CXX-only
project.
Let me know whether it works for you.
Thanks
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110329/321e1abe/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMakeFindEclipseCDT4.cmake
Type: text/x-cmake
Size: 6362 bytes
Desc: CMakeFindEclipseCDT4.cmake
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110329/321e1abe/attachment.bin>
More information about the CMake
mailing list