diff options
author | Peter Powell <petpow@saberuk.com> | 2016-01-19 21:02:57 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2016-01-19 21:07:34 +0000 |
commit | 2e370f6ed5d8ecb7a649c02fb083d3c6c80d5c48 (patch) | |
tree | 946b8072f6fc949c6b08718fa96a8c31728397c8 /modules | |
parent | 10aeba2da208fb24702c8385aa1eed50369f03d0 (diff) |
Error out if any 1.8 modules are in the the module directory.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt index 26af2745e..02139a0e5 100644 --- a/modules/CMakeLists.txt +++ b/modules/CMakeLists.txt @@ -12,6 +12,10 @@ macro(build_modules SRC) if(IS_DIRECTORY "${MODULE_SRC}") build_modules("${MODULE_SRC}") else(IS_DIRECTORY "${MODULE_SRC}") + string(REGEX MATCH "\\.c$" ANOPE18MODULE ${MODULE_SRC}) + if(ANOPE18MODULE) + message(FATAL_ERROR "Anope 1 modules are not compatible with Anope 2!\nOffending module: ${MODULE_SRC}") + endif(ANOPE18MODULE) string(REGEX MATCH "\\.cpp$" CPP ${MODULE_SRC}) if(CPP) set_source_files_properties(${MODULE_SRC} PROPERTIES LANGUAGE CXX COMPILE_FLAGS "${CXXFLAGS}") |