[CMake] anybody crosscompiling and using pkg_config ?
Andreas Schneider
mail at cynapses.org
Sat Jul 19 06:25:17 EDT 2008
Alexander Neundorf wrote:
> Hi,
Hi Alex,
>
> 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_CROSSCOMPILING)
if (CMAKE_FIND_ROOT_PATH OR ONLY_CMAKE_FIND_ROOT_PATH)
Cheers,
-- andreas
--
http://www.cynapses.org/ - cybernetic synapses
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 257 bytes
Desc: OpenPGP digital signature
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080719/fd2d555c/attachment.pgp>
More information about the CMake
mailing list