[CMake] Fortran 90 modules not rebuilt
K. Noel Belcourt
kbelco at sandia.gov
Tue Nov 16 13:11:30 EST 2010
Hi,
I've attached my project's top-level Makefile. I'm trying to force
all the modules in the project to build first so I created a single
library called modules that contains all my Fortran 90 module files.
I'm invoking the Makefile explicitly passing the modules as the
target to build (so I can build a clean project in two steps: make
modules ; make)
Here's the short error when trying to build the modules explicitly.
[kbelco at wsblade001 tools]$ make modules
make[3]: *** No rule to make target `Modules/CMakeFiles/modules.dir/
m_const.mod.stamp', needed by `Util/CMakeFiles/util.dir/scratch/trunk/
Util/Da2col_NSI.o'. Stop.
make[2]: *** [Util/CMakeFiles/util.dir/all] Error 2
make[1]: *** [Modules/CMakeFiles/modules.dir/rule] Error 2
make: *** [modules] Error 2
and here's the longer version.
[kbelco at wsblade001 tools]$ make -n modules
/scratch/CMake/bin/cmake -H/scratch/trunk/tools -B/scratch/trunk/
tools --check-build-system CMakeFiles/Makefile.cmake 0
make -f CMakeFiles/Makefile2 modules
/scratch/CMake/bin/cmake -H/scratch/trunk/tools -B/scratch/trunk/
tools --check-build-system CMakeFiles/Makefile.cmake 0
/scratch/CMake/bin/cmake -E cmake_progress_start /scratch/trunk/tools/
CMakeFiles 35
make -f CMakeFiles/Makefile2 Modules/CMakeFiles/modules.dir/all
make -f Util/CMakeFiles/util.dir/build.make Util/CMakeFiles/util.dir/
depend
cd /scratch/trunk/tools && /scratch/CMake/bin/cmake -E cmake_depends
"Unix Makefiles" /scratch/trunk/tools /scratch/trunk/tools/Util /
scratch/trunk/tools /scratch/trunk/tools/Util /scratch/trunk/tools/
Util/CMakeFiles/util.dir/DependInfo.cmake --color=
make -f Util/CMakeFiles/util.dir/build.make Util/CMakeFiles/util.dir/
requires
make -f Util/CMakeFiles/util.dir/build.make Util/CMakeFiles/util.dir/
build
make[3]: *** No rule to make target `Modules/CMakeFiles/modules.dir/
m_const.mod.stamp', needed by `Util/CMakeFiles/util.dir/scratch/trunk/
Util/Da2col_NSI.o'. Stop.
make[2]: *** [Util/CMakeFiles/util.dir/all] Error 2
make[1]: *** [Modules/CMakeFiles/modules.dir/rule] Error 2
make: *** [modules] Error 2
Can anyone see why instead of making the modules, CMake seems to move
right on to the Util library?
-- Noel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile.gz
Type: application/applefile
Size: 493 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101116/fa3495c0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile.gz
Type: application/x-gzip
Size: 2271 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101116/fa3495c0/attachment-0001.bin>
-------------- next part --------------
More information about the CMake
mailing list