[CMake] cmake // how to get compiler default include search path

Sergey Nikulov sergey.nikulov at gmail.com
Tue Apr 21 22:36:18 EDT 2009


Hi All,

Could you please suggest me how to get default compiler include search
path with cmake?

For example gcc -c -v empty.c gives

<... skip ...>
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/gcc/i386-redhat-linux/4.1.1/include
 /usr/include
End of search list.
<... skip ...>

Is that information available within Cmake in cross platform way?
Something like CMAKE_<LANG>_DEFAULT_INCLUDE_PATH?

Thank you.
-- 
Best Regards,
Sergey Nikulov


More information about the CMake mailing list