On 2010-06-25 16:58:47 +0200, Michael Wild said:
However, I think it's really difficult to guarantee consistency. If the
code to be compiled contains stuff like the following
#ifdef __APPLE__
#include <Python/Python.h>
#else
#include <Python.h>
#endif
the compiler will compile against the latest framework installation it
finds on the search path (probably
/System/Library/Frameworks/Python.framework), but for linking whatever
CMake (or the user by modifying the cache) chooses to pick will be
used, be that the framework installation or some library-installation
(Fink, MacPorts, /usr/lib, user-installed, ...).
AFAIK all directories you give gcc with the "-I" option will be
searched _before_ the standard include paths or C_INCLUDE_PATH. So I
think you do have control over what is included. But I know almost
nohting about all the compiling/linking stuff, so I might be wrong.
--
Janosch
_______________________________________________
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