On 03.02.2011 20:04, Bill Hoffman wrote:
On 2/3/2011 12:20 PM, Peter Kümmel wrote:
On 03.02.2011 17:20, Peter Kümmel wrote:
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.
For simpler testing I've uploaded
Windows and Linux binaries here:
https://sourceforge.net/projects/cmakescript/files/CMake%20namespace/
This would be better discussed on the cmake-developers mailing list.
Indeed, this is the wrong list for this. Somehow I missed that there is a devel
list.
Peter
-Bill
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake