[cmake-developers] [CMake 0011583]: No simple function to find "tools" as opposed to programs
Mantis Bug Tracker
mantis at public.kitware.com
Wed Dec 8 11:29:05 EST 2010
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=11583
======================================================================
Reported By: Pierre Ossman
Assigned To:
======================================================================
Project: CMake
Issue ID: 11583
Category: Modules
Reproducibility: always
Severity: feature
Priority: normal
Status: new
======================================================================
Date Submitted: 2010-12-08 17:29 CET
Last Modified: 2010-12-08 17:29 CET
======================================================================
Summary: No simple function to find "tools" as opposed to
programs
Description:
Autoconf separates the concept of "tools" and "programs" in the macros
AC_PROG_PATH and AC_TOOL_PATH (and variants). The difference only matters when
you cross-compile, but when you do that distinction is crucial.
CMake unfortunately doesn't expose such a distinction, even though it uses it
internally. The attached patch puts this in a generic function called
find_tool() and changes the current internal users to this (just binutils
really).
This also fixes a buggy pkg-config implementation as that really is a "tool" and
not a "program". This makes it possible to use pkg-config with cross-compiler
setups, something that wasn't previously possible (not without hacks at least).
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2010-12-08 17:29 Pierre Ossman New Issue
2010-12-08 17:29 Pierre Ossman File Added: find_tool.patch
======================================================================
More information about the cmake-developers
mailing list