Download Latest Version ninja.exe 1.0.0 (151.6 kB) Google Add to Preferred Sources
Home / CMake namespace
Name Modified Size InfoDownloads / Week
Parent folder
Readme-namespace.txt 2011-02-03 349 Bytes
cmake-2.8.3-namespace-Linux-x86_64.sh 2011-02-03 8.4 MB
cmake-2.8.3-namespace-win32-x86.zip 2011-02-03 12.2 MB
Totals: 3 Items   20.7 MB 0
Namespace support for CMake:

   namespace(<string>)
   endnamespace()

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 CMake ticket is here
http://www.cmake.org/Bug/view.php?id=11793
Source: Readme-namespace.txt, updated 2011-02-03