Hi All Please find attached a tar file containing the source code. The build process and encountered error are:
ogunbog@JesusIsLord:~/work/fortran/point/build$ cmake .. -- The Fortran compiler identification is GNU 6.0.0 -- Check for working Fortran compiler: /home/ogunbog/bin/gfc6u4 -- Check for working Fortran compiler: /home/ogunbog/bin/gfc6u4 -- works -- Detecting Fortran compiler ABI info -- Detecting Fortran compiler ABI info - done -- Checking whether /home/ogunbog/bin/gfc6u4 supports Fortran 90 -- Checking whether /home/ogunbog/bin/gfc6u4 supports Fortran 90 -- yes -- Configuring done -- Generating done -- Build files have been written to: /home/ogunbog/work/fortran/point/build ogunbog@JesusIsLord:~/work/fortran/point/build$ l CMakeCache.txt CMakeFiles/ cmake_install.cmake Makefile mod/ src/ ogunbog@JesusIsLord:~/work/fortran/point/build$ l mod/ ogunbog@JesusIsLord:~/work/fortran/point/build$ make Scanning dependencies of target foo [ 33%] Building Fortran object src/CMakeFiles/foo.dir/m_point.f90.o Error copying Fortran module "mod/procedure". Tried "mod/PROCEDURE.mod" and "mod/procedure.mod". make[2]: *** [src/CMakeFiles/foo.dir/m_point.f90.o.provides.build] Error 1 make[1]: *** [src/CMakeFiles/foo.dir/all] Error 2 make: *** [all] Error 2 ogunbog@JesusIsLord:~/work/fortran/point/build$ l mod/ m_point.mod m_point@point_a.smod m_point.smod A major benefit of submodules is that if a change is made to one, only it and its descendants are affected. Thus, it avoid unnecessary recompilation cascades. Regards Prince =========================================================== Prince Olusegun G. Ogunbade School Address Postal Address Dept. of Physics P O Box 11646 University of Pretoria The Tramshed Pretoria 0002 Pretoria 0126 Republic of South Africa Republic of South Africa Telephone: ======== +27 (0)12 420 3114 (School) +27 (0)74 539 7920 (Mobile) E-mail: ==== pogo...@hotmail.com pogo...@tuks.co.za jilf...@yahoo.com ________________________________________ From: Brad King <brad.k...@kitware.com> Sent: Wednesday, March 23, 2016 10:12 PM To: olusegun ogunbade Cc: Arjen Markus; cmake@cmake.org Subject: Re: [CMake] Cmake 3.5.0 and Fortran submodule cannot be built On 03/23/2016 11:41 AM, Arjen Markus wrote: > Fortran submodules are contained in a file with the extension > .smod instead of .mod. At least for Intel Fortran. It may very > well be that this feature is not yet supported by CMake. [snip] >> Error copying Fortran module "mod/function". >> Tried "mod/FUNCTION.mod" and "mod/function.mod". >> >> Does recent cmake support Fortran submodule? CMake has not been taught about Fortran submodules. I'm not very familiar with them either. Do submodules affect the order in which sources need to be compiled as modules do? Please provide a small example project demonstrating use of submodules and showing the error above. Thanks, -Brad
point.tar
Description: point.tar
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake