[CMake] FIND_PROGRAM w/ CMake 2.8.2 and Cygwin
Emmanuel Blot
eblot.ml at gmail.com
Mon Jan 10 09:43:23 EST 2011
Hello All,
I've just bumped into an issue with Cygwin.
I have not compiled with CMake and Cygwin for a while, so I'm not sure
where the problem comes from (Cygwin, CMake, or the combination of
both).
The following command used to work on all platforms (Linux, Mac OS X, Cygwin):
FIND_PROGRAM (xcc arm-eabi-gcc)
but now, with Cygwin, the command fails to locate the executable which
is in the path indeed.
IF I had the Windows executable suffix (.exe), it works:
FIND_PROGRAM (xcc arm-eabi-gcc.exe)
Obviously, the "fix" is not portable and will break on any non-Windows platform.
Some questions:
1/ Is this a known issue / new regression?
I have not been subscribed to the ML for a while, and I can't find a
decent way to search through the ML archives,
http://www.cmake.org/pipermail/cmake/ does not offer a search
function. Sorry if the question has already been answered (let me know
if it is)
2/ What is the best way to circumvent this issue?
3/ Am I missing something obvious?
Note: "CMAKE_EXECUTABLE_SUFFIX" is defined to the empty string on
CMake 2.8.2/Cygwin, which seems wrong as well.
Cheers,
Manu
More information about the CMake
mailing list