<html><head><title></title></head><body><!-- rte-version 0.2 9947551637294008b77bce25eb683dac --><div class="rte-style-maintainer" style="font-family: Arial, "BB.Proportional"; white-space: pre-wrap; font-size: small; color: rgb(0, 0, 0);"data-color="global-default" bbg-color="default" data-bb-font-size="medium" bbg-font-size="medium">Unfortunately there is no way I can see to control the output directory. It is always the current working directory.<br><div class="rte-style-maintainer" style="font-size: small; font-family: "Courier New", Courier, "BB.FixedWidth"; color: rgb(0, 0, 0);"data-color="global-default" bbg-color="default" data-bb-font-size="medium" bbg-font-size="medium"><br><div class="bbg-rte-fold-content" data-header="From: brad.king@kitware.com At: 04/12/18 09:42:58" data-digest="From: brad.king@kitware.com At: 04/12/18 09:42:58" style=""><div class="bbg-rte-fold-summary">From: brad.king@kitware.com At: 04/12/18 09:42:58</div>To: <a spellcheck="false" bbg-destination="mailto:esinowitz@bloomberg.net" href="mailto:esinowitz@bloomberg.net"> Ephi Sinowitz (BLOOMBERG/ 919 3RD A ) </a>, <a spellcheck="false"bbg-destination="mailto:cmake@cmake.org" href="mailto:cmake@cmake.org"> cmake@cmake.org</a><br>Subject: Re: [CMake] Ninja Fortran on XL</div><br><blockquote>On 04/12/2018 08:22 AM, Ephi Sinowitz (BLOOMBERG/ 919 3RD A) wrote:<br>> CMake expects the PREPROCESSED_SOURCE output to be in the form<br>> <SOURCE>-pp.f and XL does not allow you to control that. The output> is always of the form F<SOURCE>.f<br>> <br>> Is there anything I can do here like putting redirection or two<br>> commands inside the CMAKE_Fortran_PREPROCESS_SOURCE variable?<br><br>One can put two commands, e.g. something like:<br><br>```<br>set(CMAKE_Fortran_PREPROCESS_SOURCE<br> "<CMAKE_Fortran_COMPILER> ... -d -qnoobject <SOURCE>"<br> "mv <WHEREVER_XL_PUTS_IT> <PREPROCESSED_SOURCE>"<br> )<br>```<br><br>Filling in `<WHEREVER_XL_PUTS_IT>` may be difficult. I've observed:<br><br>* `/path/to/foo.F` ==> `./Ffoo.f`<br>* `/path/to/foo.F90` ==> `./Ffoo.f90`<br><br>CMake would need to be taught to produce a `<PLACEHOLDER>`<br>for this value, and it would need to know the mapping that<br>xlf uses for extensions.<br><br>Does xlf have a way to control in what directory the file is placed?<br><br>-Brad<br></blockquote><br></div></div></body></html>