diff options
author | Brad King <brad.king@kitware.com> | 2009-04-14 13:35:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-04-14 13:35:56 (GMT) |
commit | 19d11e2a1f483736f9f35990dd0db339a44ad146 (patch) | |
tree | b166227a82ba41bdb135f3007740fda5082fe375 /Source/kwsys/Configure.h.in | |
parent | 63a1e45076c83fadc16c24d1dd8d53987be12ce8 (diff) | |
download | CMake-19d11e2a1f483736f9f35990dd0db339a44ad146.zip CMake-19d11e2a1f483736f9f35990dd0db339a44ad146.tar.gz CMake-19d11e2a1f483736f9f35990dd0db339a44ad146.tar.bz2 |
ENH: Skip KWSys name maros in case of identity
All KWSys C symbol names begin with the KWSYS_NAMESPACE defined at
configuration time. For ease of editing we write canonical names with
the prefix 'kwsys' and use macros to map them to the configured prefix
at preprocessing time. In the case of standalone KWSys, the prefix is
'kwsys', so the macros were previously defined to their own names.
We now skip defining the macros in the identity case so that the final
symbol names are never themselves macros. This will allow the symbols
to be further transformed behind the scenes to help linkers in special
cases on some platforms.
Diffstat (limited to 'Source/kwsys/Configure.h.in')
-rw-r--r-- | Source/kwsys/Configure.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/kwsys/Configure.h.in b/Source/kwsys/Configure.h.in index b423499..85e4cdb 100644 --- a/Source/kwsys/Configure.h.in +++ b/Source/kwsys/Configure.h.in @@ -22,6 +22,9 @@ # define kwsysEXPORT @KWSYS_NAMESPACE@_EXPORT #endif +/* Whether kwsys namespace is "kwsys". */ +#define @KWSYS_NAMESPACE@_NAME_IS_KWSYS @KWSYS_NAME_IS_KWSYS@ + /* If we are building a kwsys .c or .cxx file, suppress the Microsoft deprecation warnings. */ #if defined(KWSYS_NAMESPACE) |