Hi Alan,

On 2010-03-24 18:12, Alan W. Irwin wrote:

> Obviously, I must be missing something since both of you guys see changed
> behaviour for MinGW due to this reorganization for CMake-2.6.x.  Arjen
> defined the problem as
> cmake/modules/language_support/cmake-2.6/Platform/Windows-GNU-Fortran.cmake
> was being ignored.  If that is really true, it should only take a few
> minutes of debugging
> cmake/modules/language_support/cmake-2.6/CMakeFortranInformation.cmake by
> inserting message statements in the svn trunk version of that file to see
> why
> cmake/modules/language_support/cmake-2.6/Platform/Windows-GNU-Fortran.cmake
> is being ignored.
> 
> Good luck with that debugging, and please let me know how it goes because
> you certainly have my curiosity aroused about why the above simple
> changes do not work on MinGW.
> 

I have put some print statements in the file
CMakeFortranInformation.cmake and that was most revealing:

In the IF-block IF(CMAKE_Fortran_COMPILER_ID) the files that are
being checked are:

F:/plplot-svn/build-mingw-test-cmake/language_tests/Fortran/CMakeFiles/CMakeTmp/cmake/modules/language-support/cmake-2.6/Platform/Windows-GNU-Fortran.cmake

and:
f:/cmake/share/cmake-2.6/Modules/Platform/Windows-GNU-Fortran.cmake

The first is formed from the variable CMAKE_SOURCE_DIR, which has
acquired a very unexpected value (at least to me): 
F:/plplot-svn/build-mingw-test-cmake/language_tests/Fortran/CMakeFiles/CMakeTmp/
the last part in this name does not exist.

The second file that is checked, does not exist either.

There is a file Windows-g77.cmake in the CMake installation and that is 
used in the end (the Fortran compiler identification is g77, despite
the gfortran.exe executable that is being run, but that may be a red
herring - my version of gfortran on this machine does not work properly)

I hope this sheds more light on the situation.

Regards,

Arjen

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to