1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 16:53:13 +02:00

Error out if any 1.8 modules are in the the module directory.

This commit is contained in:
Peter Powell
2016-01-19 21:02:57 +00:00
parent 10aeba2da2
commit 2e370f6ed5
+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}")