On 01/28/2011 09:55 AM, Hendrik Sattler wrote: > Zitat von "Michael Wild" <them...@gmail.com>: > >> Now, if you want to mix-and-match, by having this include-path: >> -I/usr/include -I/usr/local/include >> >> (i.e. use /usr/include/foo.h and /usr/local/include/bar.h) you're in >> trouble, because CMake will filter out the /usr/include directory, >> leaving you with /usr/local/include/foo.h being found. Rats. > > Note that some compilers, e.g. gcc, ignore system include path that are > given with -I. Citing from its manpage: > "If you really need to change the search order for system directories, > use the -nostdinc and/or -isystem options." > > HS
So, that's causing even more trouble, also considering my further example with duplicate headers in different prefixes. Michael _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake