Hi everybody
I 've got a problem with a program mixing fortran c and c++ when i want to use g95.
It works fine with ifort and gfortran but with g95 it send me this error:


- The Fortran compiler identification is G95
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working Fortran compiler: /opt/local/bin/g95
-- Check for working Fortran compiler: /opt/local/bin/g95 -- broken
CMake Error at /Applications/CMake 2.8-0.app/Contents/share/cmake-2.8/Modules/CMakeTestFortranCompiler.cmake:38 (MESSAGE):
The Fortran compiler "/opt/local/bin/g95" is not able to compile a simple
test program.

It fails with the following output:

Change Dir: /Users/cyrilbordreuil/Recherche/LMGC90/LMGC90v2_dev/build/CMakeFiles/CMakeTmp



Run Build Command:/usr/bin/make "cmTryCompileExec/fast"

/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build

"/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_progress_report

/Users/cyrilbordreuil/Recherche/LMGC90/LMGC90v2_dev/build/CMakeFiles/CMakeTmp/CMakeFiles
1

Building Fortran object
CMakeFiles/cmTryCompileExec.dir/testFortranCompiler.f.o

/opt/local/bin/g95 -o
CMakeFiles/cmTryCompileExec.dir/testFortranCompiler.f.o
-mmacosx-version-min=10.4 -c

/Users/cyrilbordreuil/Recherche/LMGC90/LMGC90v2_dev/build/CMakeFiles/CMakeTmp/testFortranCompiler.f


f951: error: invalid option 'macosx-version-min=10.4'

make[1]: *** [CMakeFiles/cmTryCompileExec.dir/testFortranCompiler.f.o]
Error 1

make: *** [cmTryCompileExec/fast] Error 2

I tried to find where i can modify -mmacosx-version-min=10.4 just to let -c for compiling
option but i can't find anything.

Have you got any hints?
Thank you for the help
Cyril
_______________________________________________
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