]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - make/unit-cc.pl
Integrate coremods into the build system
[user/henk/code/inspircd.git] / make / unit-cc.pl
index 5b0c50021406af4112bf54ce67f145174430ba6d..77f97a3f2183d0b3c2f917eeb28652b25478da20 100755 (executable)
@@ -99,7 +99,7 @@ sub do_compile {
        if ($do_compile) {
                $flags = $ENV{CORECXXFLAGS} . ' ' . get_property($file, 'CompileFlags');
 
-               if ($file =~ m#(?:^|/)((?:m|cmd)_[^/. ]+)(?:\.cpp|/.*\.cpp)$#) {
+               if ($file =~ m#(?:^|/)((?:m|core)_[^/. ]+)(?:\.cpp|/.*\.cpp)$#) {
                        $flags .= ' -DMODNAME=\\"'.$1.'\\"';
                }
        } else {