Re: [CMake] help with cmake fortran envar

2010-11-19 Thread luxInteg
On Wednesday 17 November 2010 08:10:32 Arjen Markus wrote:
 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.
 
I have it sorted 
thanks or the advice
___
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


Re: [CMake] help with cmake fortran envar

2010-11-17 Thread Arjen Markus

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


Re: [CMake] help with cmake fortran envar

2010-11-16 Thread Rolf Eike Beer
Am Dienstag, 16. November 2010 schrieb luxInteg:
 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

Remove that stuff. Start your CMakeLists.txt with

PROJECT(foobar FORTRAN)

Eike


signature.asc
Description: This is a digitally signed message part.
___
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