diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-04-09 15:39:52 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-04-09 15:39:52 +0200 |
commit | c33f0e60eab79e82c54778a32c23836c1a4a7fd9 (patch) | |
tree | 2f4fdc681f9412fb0c6e2f26c0fc79ed9c5a392a /src/CMakeLists.txt | |
parent | 31bfcf96c700ce8454609d19ad6e5f5e6c28253f (diff) | |
download | weechat-c33f0e60eab79e82c54778a32c23836c1a4a7fd9.zip |
Define WeeChat license as macro for C compiler, used in plugins to set license
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index da437f2fa..977f23b70 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -117,9 +117,9 @@ ENDIF(DL_LIBRARY) IF(COMMAND cmake_policy) cmake_policy(SET CMP0005 NEW) - ADD_DEFINITIONS(-DWEECHAT_VERSION="${VERSION}") + ADD_DEFINITIONS(-DWEECHAT_VERSION="${VERSION}" -DWEECHAT_LICENSE="${LICENSE}") ELSE(COMMAND cmake_policy) - ADD_DEFINITIONS(-DWEECHAT_VERSION='"${VERSION}"') + ADD_DEFINITIONS(-DWEECHAT_VERSION='"${VERSION}"' -DWEECHAT_LICENSE='"${LICENSE}"') ENDIF(COMMAND cmake_policy) ADD_SUBDIRECTORY( core ) |