<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2>
<DIV><SPAN class=690150307-27072007><FONT face=Arial
size=2>Hello,</FONT></SPAN></DIV>
<DIV><SPAN class=690150307-27072007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=690150307-27072007><FONT face=Arial size=2>I want to use
pre-compilers to insert analytic code before parsing it by the normal compiler.
For example I want to use Insure++ to check on runtime errors like memory leaks.
The way to do this is to use the insure.exe compiler instead of the cl.exe
compiler (on Win32 that is), The problem I'm facing with this is that when
I override the <FONT face=Courier>CMAKE_CXX_COMPILER </FONT><FONT
face=Arial>variable for a specific component that is dependant on already cl.exe
build components, I get the following message:</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=690150307-27072007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=690150307-27072007><FONT face=Courier size=2>Warning: CMake is
forcing CMAKE_CXX_COMPILER to "C:/Program Files/Microsoft Visual Studio
8/VC/bin/cl.exe" to match that imported from Bmm.BmmPP. This is required
because C++ projects must use the same compiler. If this message appears
for more than one imported project, you have conflicting C++ compilers and will
have to re-build one of those projects. Was set to C:/Program
Files/ParaSoft/Insure++/bin.Win32/insure.exe</FONT></SPAN></DIV>
<DIV><SPAN class=690150307-27072007><FONT face=Courier
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=690150307-27072007><FONT face=Courier size=2><FONT
face=Arial>As the Insure++ compiler is just a pre-compiler and the actual
compilation is still done by the cl.exe compiler I'll have no problems
with conflicting compilers.</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=690150307-27072007><FONT face=Courier size=2><FONT
face=Arial></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=690150307-27072007><FONT face=Courier size=2><FONT
face=Arial>So my question is: How can I specify to build a specific component
with a pre-compiler without CMake overruling it to the compiler already used by
dependant components? It is no option to rebuild all dependant components with
the pre-compiler.</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=690150307-27072007><FONT face=Courier size=2><FONT
face=Arial></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=690150307-27072007><FONT face=Courier size=2><FONT face=Arial>I
hope you can help me, Fons</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=690150307-27072007><FONT face=Courier size=2><FONT
face=Arial></FONT> </DIV></FONT></SPAN></FONT></DIV><br clear=all> This message and attachment(s) are intended solely for use by the addressee and may contain information that is privileged, confidential or otherwise exempt from disclosure under applicable law.
If you are not the intended recipient or agent thereof responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify the sender immediately by telephone and with a 'reply' message.
Thank you for your co-operation.
</BODY></HTML>