On 10/25/2012 6:06 PM, Alan W. Irwin wrote:

I have just discovered an extremely simple test case of the whole

We have already found the problem and have an even smaller test case.

cat info.cmake
file(STRINGS a.exe _strings LIMIT_COUNT 4 REGEX "INFO:")
foreach(info ${_strings})
  message(STATUS "[${info}]")
endforeach()

Build the CMake test case into a.exe like this:
gfortran CMakeFortranCompilerABI.F

Then run cmake -P info.cmake,
It should print this:
-- [INFO:compiler[GNU]INFO:platform[]]

If not it is broken and will not detect the compiler correctly.

--
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoff...@kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to