cmake 3.5.0-rc1 Error copying Fortran module

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

cmake 3.5.0-rc1 Error copying Fortran module

Thompson, KT

In my mixed C++/Fortran Makefile-based project, I am encountering the following error with RC1 of CMake-3.5.0:

 

Entering directory `/projects/foo/build/d'

/var/tmp/cmake-install/bin/cmake -E cmake_copy_f90_mod myf90file src/dir1/dir2/CMakeFiles/Lib_FC_f90sub.dir/myf90file.mod.stamp Intel

Error copying Fortran module "myf90file".  Tried "MYF90FILE.mod" and "myf90file.mod".

 

If I run ‘make VERBOSE=1’ with CMake-3.4.3, I see the following command:

 

cmake -E cmake_copy_f90_mod src/dir1/dir2/myf90file src/dir1/dir2/CMakeFiles/Lib_FC_f90sub.dir/myf90file.mod.stamp Intel

 

but with CMake-3.5.0-rc1, I have this command (notice that no path is provided for the filename (argument 3)):

 

cmake -E cmake_copy_f90_mod myf90file src/dir1/dir2/CMakeFiles/Lib_FC_f90sub.dir/myf90file.mod.stamp Intel

 

This looks like another bug in RC1

 

-kt

 


--

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
Reply | Threaded
Open this post in threaded view
|

Re: cmake 3.5.0-rc1 Error copying Fortran module

Brad King
On 02/04/2016 04:00 PM, Thompson, KT wrote:
> If I run ‘make VERBOSE=1’ with CMake-3.4.3, I see the following command:
>
> cmake -E cmake_copy_f90_mod src/dir1/dir2/myf90file src/dir1/dir2/CMakeFiles/Lib_FC_f90sub.dir/myf90file.mod.stamp Intel
>
> but with CMake-3.5.0-rc1, I have this command (notice that no path is
> provided for the filename (argument 3)):
>
> cmake -E cmake_copy_f90_mod myf90file src/dir1/dir2/CMakeFiles/Lib_FC_f90sub.dir/myf90file.mod.stamp Intel

Thanks.  Here is a fix and a new test case:

 Fix dependency scanning configuration in subdirectories
 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=c5eb21b6

I've queued this for merge to 'release' for inclusion in 3.5.0-rc2.

-Brad

--

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
Reply | Threaded
Open this post in threaded view
|

Re: cmake 3.5.0-rc1 Error copying Fortran module

Thompson, KT
Brad,

I want to confirm that your patch below fixed the issue that I reported.

Thank you!

-kt

-----Original Message-----
From: Brad King [mailto:[hidden email]]
Sent: Friday, February 05, 2016 7:32 AM
To: Thompson, KT <[hidden email]>
Cc: [hidden email]; Stephen Kelly <[hidden email]>
Subject: Re: [CMake] cmake 3.5.0-rc1 Error copying Fortran module

On 02/04/2016 04:00 PM, Thompson, KT wrote:
> If I run ‘make VERBOSE=1’ with CMake-3.4.3, I see the following command:
>
> cmake -E cmake_copy_f90_mod src/dir1/dir2/myf90file src/dir1/dir2/CMakeFiles/Lib_FC_f90sub.dir/myf90file.mod.stamp Intel
>
> but with CMake-3.5.0-rc1, I have this command (notice that no path is
> provided for the filename (argument 3)):
>
> cmake -E cmake_copy_f90_mod myf90file src/dir1/dir2/CMakeFiles/Lib_FC_f90sub.dir/myf90file.mod.stamp Intel

Thanks.  Here is a fix and a new test case:

 Fix dependency scanning configuration in subdirectories
 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=c5eb21b6

I've queued this for merge to 'release' for inclusion in 3.5.0-rc2.

-Brad

--

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