[CMake] anybody crosscompiling and using pkg_config ?
mail at cynapses.org
Sat Jul 19 06:25:17 EDT 2008
Alexander Neundorf wrote:
> when crosscompiling, pkg_config shouldn't find packages for the host system,
> but for the target system.
> Attached is a patch against current cmake cvs which tries to do that by
> setting the env var PKG_CONFIG_LIBDIR to /usr/lib/pkgconfig
> and /usr/local/lib/pkgconfig inside the directories of CMAKE_FIND_ROOT_PATH.
you should extend the check for cross compiling with
if (CMAKE_FIND_ROOT_PATH OR ONLY_CMAKE_FIND_ROOT_PATH)
http://www.cynapses.org/ - cybernetic synapses
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 257 bytes
Desc: OpenPGP digital signature
More information about the CMake