1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 09:56:38 +02:00

Merge pull request #148 from SaberUK/2.0+18mod

Error out if any 1.8 modules are in the the module directory.
This commit is contained in:
Adam
2016-01-23 09:18:32 -06:00
+4
View File
@@ -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}")