Hi, 

I get  the following error using the cvs version of cmake (9th of October 
2007).
Compilers tested
ifort version 10.0
gfortran version 4.1.2

[ 50%] Building Fortran object CMakeFiles/hello.dir/Source/test_mod.o
Error copying Fortran module "procedure".  Tried "PROCEDURE.mod" 
and "procedure.mod".
make[3]: *** [CMakeFiles/hello.dir/Source/test_mod.o.provides.build] Error 1

I put in the attach the files that replicate the error.

Alin

P.S. Compiling it manually everything goes ok.

-- 
____________________________________________________________________
"...if the universities will not study useless subjects, who will?"
                           G. F. Fitzgerald, Nature, 45/46, 392 (1892)
______________________________________________________________________
Mr. Alin M. ELENA
Atomistic Simulation Centre
School of Mathematics and Physics
Queen's University Belfast
Office: +44 (0)28 9097 1428
Fax: +44 (0)28 9097 5359
http://titus.phy.qub.ac.uk/group/Alin/
[EMAIL PROTECTED]
[EMAIL PROTECTED]
______________________________________________________________________
Project(hello Fortran)

###source files
set(src_dir Source)
###bin files
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)


add_executable(hello 
${src_dir}/test_mod.f90
${src_dir}/hello.f90 )
!!
!!
!!
program hello
use test_interface
implicit none
integer :: i
real :: r

i=10
r=10.0
call dummy(i)
call dummy(r)

end program hello
module test_interface
implicit none
private
public :: dummy

interface dummy
module procedure dummy_int, dummy_real
end interface
contains

subroutine dummy_int(i)
character(len=*), parameter :: myname="dummy_int"
integer,intent(in) :: i

write(*,'(a,i10)'),trim(myname), i

end subroutine dummy_int

subroutine dummy_real(r)
character(len=*), parameter :: myname="dummy_real"
real,intent(in) ::r 

write(*,'(a,f16.8)'),trim(myname), r

end subroutine dummy_real

end module test_interface
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to