<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I hope we’ll see CMake support for submodules soon. Submodules are now supported by released versions of the Cray, IBM, and Intel compilers and by the pre-release GNU Fortran compiler version 6.0.0, which is expected to release in mid-April.<div class=""><br class=""></div><div class="">Damian<br class=""><div class=""><br class=""></div><div class="">On Mar 23, 2016, at 1:12 PM, Brad King <<a href="mailto:brad.king@kitware.com" class="">brad.king@kitware.com</a>> wrote:<div class=""><div><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><div class="">On 03/23/2016 11:41 AM, Arjen Markus wrote:<br class=""><blockquote type="cite" class="">Fortran submodules are contained in a file with the extension<br class="">.smod instead of .mod. At least for Intel Fortran. It may very<br class="">well be that this feature is not yet supported by CMake.<br class=""></blockquote>[snip]<br class=""><blockquote type="cite" class=""><blockquote type="cite" class="">Error copying Fortran module "mod/function".<br class="">Tried "mod/FUNCTION.mod" and "mod/function.mod".<br class=""><br class="">Does recent cmake support Fortran submodule?<br class=""></blockquote></blockquote><br class="">CMake has not been taught about Fortran submodules.  I'm not<br class="">very familiar with them either.<br class=""><br class="">Do submodules affect the order in which sources need to be<br class="">compiled as modules do?<br class=""><br class="">Please provide a small example project demonstrating use of<br class="">submodules and showing the error above.<br class=""><br class="">Thanks,<br class="">-Brad<br class=""><br class="">-- <br class=""><br class="">Powered by <a href="http://www.kitware.com" class="">www.kitware.com</a><br class=""><br class="">Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" class="">http://www.cmake.org/Wiki/CMake_FAQ</a><br class=""><br class="">Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br class=""><br class="">CMake Support: <a href="http://cmake.org/cmake/help/support.html" class="">http://cmake.org/cmake/help/support.html</a><br class="">CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" class="">http://cmake.org/cmake/help/consulting.html</a><br class="">CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" class="">http://cmake.org/cmake/help/training.html</a><br class=""><br class="">Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" class="">http://www.kitware.com/opensource/opensource.html</a><br class=""><br class="">Follow this link to subscribe/unsubscribe:<br class=""><a href="http://public.kitware.com/mailman/listinfo/cmake" class="">http://public.kitware.com/mailman/listinfo/cmake</a><br class=""></div></div></blockquote></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">________________________________<br class="">Damian Rouson, Ph.D., P.E.<br class="">President, Sourcery Institute<br class=""><a href="http://www.sourceryinstitute.org" class="">http://www.sourceryinstitute.org</a><br class="">+1-510-600-2992 (mobile)</div></div></div>
</div>
<br class=""></div></div></div></body></html>