Hello,

I created a little lib in Unmanaged C++ and wanted to automate the 
build step via NAnt. For this I wrote a little build script:

<project name="MyLib" default="build">

  <property name="intermediate"     value="./interm"/>
        
  <fileset id="sourcefiles">
    <includes name="./src/MyLib.cpp" />
  </fileset>    
        
        
  <target name="build">
 
        <property name="build"     value="${intermediate}/MTUD"/>
        <property name="cpp_flags" value='/Od /I "." /I "e:\MyProjects\MyLib/inc" /D 
"WIN32" /D "_DEBUG" /D "_LIB" /D "_UNICODE" /D "UNICODE" /FD /EHsc /RTC1 /MTd /GS 
/Fd"..\lib\MyLibMTUSD.PDB" /W3 /c /Zi' />
        
    <mkdir dir="${build}" />

    <cl outputdir="${build}" options='${cpp_flags}'>
      <sources refid="sourcefiles" />
    </cl>

    <lib output="./lib/MyLibMTUSD.lib">
      <sources>
        <includes name="${build}\*.obj"/>
      </sources>
    </lib>
    
  </target>
</project>


For my lib I want to specify a filename for the PDB file via /Fd".\lib\MyLibMTUSD.PDB".
When I invoke NAnt I get the following message:

            cl : Command line warning D4025 : overriding '/Fd.\lib\MyLibMTUSD.PDB' 
with '/FdE:\MyProjects\MyLib\./interm/MTUD/'

Unfortunately the /Fd switch is overridden by the outputdir attribute of the cl task !

Now my question: Is there any chance to specify a filename for the PDB ?
Thanks in advance


Klaus Oberhofer
[EMAIL PROTECTED]



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to