[CMake] namespace support

Peter Kümmel syntheticpp at gmx.net
Thu Feb 3 11:20:09 EST 2011


Because good solution is not available
I've added the mentioned namespace support
to CMake:

   namespace(<string>)
   endnamespace()

With attached patch it is possible to write
code like this (imagine antiX.cpp does not
compile when the macro X is set):

namespace(x)
   add_definitions(-DX)
   add_library(X x.cpp)
endnamespace()
add_library(antiX antiX.cpp)


The ticket is here
http://www.cmake.org/Bug/view.php?id=11793


I hope it could be added in this or an
similar form to CMake.

Peter

-------------- next part --------------
A non-text attachment was scrubbed...
Name: namespace.patch
Type: text/x-patch
Size: 33452 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110203/536562a9/attachment-0001.bin>


More information about the CMake mailing list