diff options
| author | Peter Powell <petpow@saberuk.com> | 2016-09-30 21:10:06 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2016-09-30 21:10:06 -0400 |
| commit | 17c2129a043641479ad2eb71c2e22d881fd88186 (patch) | |
| tree | f082688dd838649e062d15fa0c6a96056a8b39a5 | |
| parent | de413332b9f51fb38cc9111ef0efc36a67986b22 (diff) | |
Error out if any 1.8 modules are in the the module directory.
| -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 7a31c1ccb..a4b13f1b7 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() + 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}") |
