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.

[kbe...@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.

[kbe...@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

Attachment: Makefile.gz
Description: application/applefile

Attachment: Makefile.gz
Description: GNU Zip compressed data



_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to