<p class="MsoNormal"><font><span style="background-color:rgba(255,255,255,0)">Thanks Eike for the input.</span></font></p><p class="MsoNormal"><font><span style="background-color:rgba(255,255,255,0)">I went with your suggestion and I am using the environment variables now CC and FC to point to the TAU wrappers.</span></font></p>
<p class="MsoNormal"><font><span style="background-color:rgba(255,255,255,0)">Just for the record this specific app isn’t cross platform, just on Linux.</span></font></p><p class="MsoNormal"><font><span style="background-color:rgba(255,255,255,0)">It’s still identifying the TAU wrappers as GNU and not Intel. For now we can live with forcing the compiler ID to be Intel.</span></font></p>
<p class="MsoNormal"><font><span style="background-color:rgba(255,255,255,0)">The second issue explained previously is the one more concerning, any hints on how to get CMake to dump the TAU temporary files (e.g. *.pp.f, *.pp.pdb, *.pp.inst.f) in the correct output folder instead of the current directory?</span></font></p>
<p class="MsoNormal"><font><span style="background-color:rgba(255,255,255,0)">None of these variables seem to be honored when dumping the TAU temporary files (LIBRARY_OUTPUT_PATH, CMAKE_LIBRARY_OUTPUT_DIRECTORY, CMAKE_Fortran_MODULE_DIRECTORY)</span></font></p>
<p class="MsoNormal"><font><span style="background-color:rgba(255,255,255,0)">Thanks again for your help.</span></font></p><br>On Sunday, April 6, 2014, Rolf Eike Beer <<a href="mailto:eike@sf-mail.de">eike@sf-mail.de</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am Sonntag, 6. April 2014, 10:31:57 schrieb sindimo:<br>
> Dear CMake Support,<br>
><br>
> We've been using your wonderful tool for quite some time to do our cross<br>
> platform builds.<br>
><br>
> We recently started using the TAU profiler and are having some issues when<br>
> integrating it with CMake and would appreciate your help with it please.<br>
><br>
> We set our compilers in CMake to the TAU wrappers:<br>
><br>
> set (CMAKE_Fortran_COMPILER<br>
> /red/cmt3/vol5/tau/tau_installation/x86_64/bin/tau_f90.sh)<br>
<br>
I don't read on ;) Are you doing this in a toolchain file? Otherwise do it<br>
either there or using the environment variables (CC, CXX, and so on). If you<br>
start fiddling with the compiler inside a project environment that usually<br>
means trouble.<br>
<br>
Eike</blockquote>