Awesome, thanks! <br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 3, 2019 at 10:26 AM Brad King <<a href="mailto:brad.king@kitware.com">brad.king@kitware.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 4/3/19 10:09 AM, Zaak Beekman wrote:<br>
> They contain the mod files. I didn't ask for a $<config> directory to<br>
> be created for me within the CMAKE_Fortran_MODULE_DIRECTORY but it's<br>
> there, and all the .mod files are inside it, so `install(DIRECTORY<br>
> ...)` is incapable (at least in my testing) of fetching them out of<br>
> the $<config> subdirectory.<br>
<br>
The VS generator supports multiple separate configurations being<br>
built under the same build tree, so all artifacts such as object<br>
files, libraries, executables, and Fortran modules need to have<br>
a per-config location.<br>
<br>
For libraries and executables we already have ways for projects<br>
to specify per-config locations such that no per-config<br>
subdirectory is added.  I've opened an issue to do the same for<br>
Fortran modules:<br>
<br>
  <a href="https://gitlab.kitware.com/cmake/cmake/issues/19126" rel="noreferrer" target="_blank">https://gitlab.kitware.com/cmake/cmake/issues/19126</a><br>
<br>
Meanwhile you may be able to use `$<CONFIG>` in the source directory<br>
specified by `install(DIRECTORY)` when CMAKE_GENERATOR is a<br>
Visual Studio generator.<br>
<br>
-Brad<br>
</blockquote></div>