[CMake] Problem getting bootstrap to enable Fortran and JAVA
Bill Hoffman
bill.hoffman at kitware.com
Tue Aug 18 13:09:22 EDT 2009
Kotcher, Danny wrote:
> Hello
>
> I bootstrapped cmake on a x86_64 Linux cluster and have been doing C++
> successfully.
>
> When attempting a Fortran project, I got the message:
>
> "CMake Error: Error required internal CMake variable not set, cmake may
> not be built correctly.
> Missing variable is:
> CMAKE_COMPILER_ENV_VAR"
>
> I bought the book, and section 11.2 tells me that "project (f Fortran) "
> enables Fortran. Where is the project command specified? Is it in the
> "--init=FILE" file passed to bootstrap? What is the format of that file?
>
The project command should be the second command in your project right
after the cmake_minimum_required.
Something like this:
cmake_minimum_required(VERSION 2.6.4 FATAL_ERROR)
project(MyProject C CXX Fortran)
-Bill
More information about the CMake
mailing list