On Tue, 01 Jun 2010 13:02:29 -0400, Brad King <brad.k...@kitware.com> wrote: > Jed Brown wrote: > > Is there a way to specify where generated *.mod files will be placed? > > Something analogous to CMAKE_LIBRARY_OUTPUT_DIRECTORY? > > http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:Fortran_MODULE_DIRECTORY
*Blush*, I don't know how I missed that. Thanks. There is still the issue that module files don't get rebuild if they are deleted, make[2]: *** No rule to make target `include/petscmat.mod', needed by `CMakeFiles/petscdm.dir/src/dm/f90-mod/petscdmmod.F.o'. Stop. make[1]: *** [CMakeFiles/petscdm.dir/all] Error 2 I don't seem to be able to regenerate the module by any lightweight procedure (make -B SpecificTarget works). Perhaps that scenario where module files are deleted independent of the object/libraries is artificial, but it's not really correct for the build to break if they are deleted. Jed _______________________________________________ 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