[CMake] enable_language( ... OPTIONAL) causes error or second cmake run
Alexander Neundorf
a.neundorf-work at gmx.net
Wed Nov 25 13:16:20 EST 2009
On Wednesday 25 November 2009, Marcel Loose wrote:
> Hi Alex,
>
> Maybe I'm overlooking all kinds of side effects, but the problem is in
> line 6 of CMakeFortranInformation.cmake, where get_filename_component()
> is called with an incorrect number of arguments. This happens because
> ${CMAKE_Fortran_COMPILER} is empty. If I simply put quotes around
> ${CMAKE_Fortran_COMPILER} the problem is solved. Or so it seems. Right,
> or wrong?
I think there's more to it IIRC, the rest of the enable-language process has
to be canceled correctly, which is probably not the case with your fix.
But please put this comment in the bugtracker, so it doesn't get lost.
Alex
More information about the CMake
mailing list