Hello luxInteg,

you are trying to set the Fortran compiler to gfortran then?
Why? Why not leave it to CMake to come up with whatever compiler
is suitable? That is part of the strength of tools like CMake.

Regards,

Arjen

On 2010-11-16 20:44, luxInteg wrote:
Greetings,

I am learning cmake.


I have a fortran only project with some source files with f77 routines to compile, My CMakeLists.txt in the projects base directory has the following lines

set(CMAKE_Fortran_COMPILER  gfortran)
ENABLE_LANGUAGE(Fortran)


########  but running cmake ends like so:-

-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FORTRAN_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FORTRAN_COMPILER
CMake Error: Could not find cmake module file:
$SOURCES/build/CMakeFiles/CMakeFORTRANCompiler.cmake
CMake Error: Could not find cmake module file:CMakeFORTRANInformation.cmake
CMake Error: CMAKE_FORTRAN_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!




#########

I have set FC="gfortran" and FFLAGS="flags/I/use/to/compile/stuff" as envars so I am perplexed what the required envar is.

advice would be appreciated

sincerely
luxInteg
_______________________________________________
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://www.cmake.org/mailman/listinfo/cmake



DISCLAIMER: This message is intended exclusively for the addressee(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient please notify the sender immediately and destroy this message. 
Unauthorized use, disclosure or copying of this message is strictly prohibited.
The foundation 'Stichting Deltares', which has its seat at Delft, The 
Netherlands, Commercial Registration Number 41146461, is not liable in any way 
whatsoever for consequences and/or damages resulting from the improper, 
incomplete and untimely dispatch, receipt and/or content of this e-mail.




_______________________________________________
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://www.cmake.org/mailman/listinfo/cmake

Reply via email to