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
signature.asc
Description: OpenPGP digital signature
_______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
