[CMake] Problems C/C++ system headers and Eclipse Generator

Stefan Dröge stefan at sdroege.de
Tue Jun 9 04:05:46 EDT 2009


2009/6/9 Philip Lowman <philip at yhbt.com>:
> Yes, that is the only reason.
>
> Can you try the CMakeFindEclipseCDT4.cmake attached to this bug report? I've
> wrapped the call to EXECUTE_PROCESS by saving the LANG environment variable
> and then setting it to "C", and restoring it after running gcc.  I'm not
> entirely sure if this is the right thing to do as I'm not really experienced
> with locales at all.
>
> http://public.kitware.com/Bug/view.php?id=9122
>
> You can test the script by putting the following in your code:
> message("C system include dirs = ${CMAKE_ECLIPSE_C_SYSTEM_INCLUDE_DIRS}")
> message("C++ system include dirs =
> ${CMAKE_ECLIPSE_CXX_SYSTEM_INCLUDE_DIRS}")
>
> --
> Philip Lowman

For me, it solves the problem. Thank you!

Stefan


More information about the CMake mailing list