<!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.6000.16705" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=968420511-11092008>Hello,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=968420511-11092008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=968420511-11092008>I have a slight
problem with adding .idl files to a project generated through CMake. It seems as
if the automatic preprocessor definition generated by CMake causes a problem for
the preprocessor part of MIDL (used for compiling .idl-files). For debug build
the preprocessor definition that causes problem looks like
this:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=968420511-11092008> CMAKE_INTDIR=\"Debug\"</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=968420511-11092008>If I remove the \"
(or simply the entire thing) the .idl will be processed
correctly.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=968420511-11092008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=968420511-11092008>Is this the intended
behaviour or is it not supposed to work with .idl-files? Well it is possible
to use .idl-file by calling a lot of ADD_CUSTOM_COMMAND like
I have seen in the mailing list archives, I have not tried those solutions yet
as I will probably just write a program that will modify the project file before
building.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=968420511-11092008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=968420511-11092008>I am asking in order
to know if I should file a bug report or if I am simply doing something
wrong.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=968420511-11092008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=968420511-11092008>Additional
Information.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=968420511-11092008>Problem encountered
when converting old project to CMakeLists.txt. Creating an ActiveX control so I
guess it is a windows specific problem.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=968420511-11092008>CMake 2.6.1,
Microsoft Visual Studio 2008 (Proffesional). </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=968420511-11092008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=968420511-11092008>Markus</SPAN></FONT></DIV></BODY></HTML>