[Cmake] ADD_DEFINITIONS working for .NET?

Robert Mathews rmathews at envoyww.com
Thu May 1 15:49:43 EDT 2003


Never mind. 

This happens if you put the ADD_DEFINITIONS after the SUBDIRs command in your root makefile. CMake recurs down the SUBDIRs projects before it does the ADD_DEFINITIONS command, and hence it appears like it has no effect. This is what CMake is supposed to do, of course.

Rob. 

  ----- Original Message ----- 
  From: Robert Mathews 
  To: cmake at public.kitware.com 
  Sent: Thursday, May 01, 2003 2:56 PM
  Subject: [Cmake] ADD_DEFINITIONS working for .NET?


  Ok, I admit this is unlikely, but is there any trick with the ADD_DEFINITIONS command for a .NET (Version 7.0) target? 

  I've added something like this to my CMakeLists.txt file, and the definitions don't seem to come out the other end ...

  ADD_DEFINITIONS(/DUNICODE  /DWIN32 /Zm400 /D_WIN32_WINNT=0x501 )

  Thanks in advance,
  Rob. 

  Visual Studio .NET, Version 7.0, target C/C++ code. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20030501/8a1d6384/attachment.html>


More information about the CMake mailing list