Fortran and cmake_depends

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Fortran and cmake_depends

Joshua Buckner
The command
/usr/bin/cmake -E cmake_depends "Unix Makefiles”
is taking 15 to 20 minutes to complete when I organize my Fortran 90 source files into subdirectories under a root directory with a single CMakeLists.txt file.

When the same F90 files are copied into a single directory on the same file system, cmake_depends takes no more than 30 seconds.

There are about 900,000 lines of F90 code organized into 700 files in 50 subdirectories.

Is there a way to use “Unix Makefiles”, preserve the subdirectory structure and speed up cmake_depends?


Powered by

Please keep messages on-topic and check the CMake FAQ at:

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support:
CMake Consulting:
CMake Training Courses:

Visit other Kitware open-source projects at

Follow this link to subscribe/unsubscribe: