[CMake] CXX incorrectly includes CMakeFortranInformation.cmake for MinGW/MSYS/Wine

John Drescher drescherjm at gmail.com
Sun Apr 4 21:28:27 EDT 2010


On Sun, Apr 4, 2010 at 7:16 PM, Alan W. Irwin <irwin at beluga.phys.uvic.ca> wrote:
> Clint (with an old version of MinGW) and I (with MinGW-4.5) have been
> running into a peculiar CXX error for MinGW/MSYS on Wine.
>
> Enabling C++ _sometimes_ fails because it includes
> CMakeFortranInformation.cmake (why?) which then leads to a
> "get_filename_component called with incorrect number of arguments"
>

I had this same problem under wine and using vc2005. I believe the
issue is caused by wine pulling in at least some of environment
variables from the linux system. The weird thing is this error only
occurred with some of my projects. To get around this temporarily
disabled the fortran module.

John


More information about the CMake mailing list