mirror of
https://github.com/anope/anope.git
synced 2026-06-25 23:06:38 +02:00
Massive cleanup of the CMakeLists.txt files to finalize them.
Edited configuration scripts for *nix and Windows to use CMake as well as support both in-source and out-of-source builds. Changed directory structure for *nix to match Windows to remove some conditionals in both CMake and Anope itself. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1841 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -44,7 +44,9 @@ static int moduleCopyFile(const char *name, const char *output)
|
||||
char input[4096];
|
||||
int len;
|
||||
|
||||
strncpy(input, MODULE_PATH, 4095); /* Get full path with module extension */
|
||||
strncpy(input, services_dir.c_str(), 4095);
|
||||
len = strlen(input);
|
||||
strncat(input, "/modules/", 4095 - len); /* Get full path with module extension */
|
||||
len = strlen(input);
|
||||
strncat(input, name, 4095 - len);
|
||||
len = strlen(output);
|
||||
@@ -146,7 +148,7 @@ int ModuleManager::LoadModule(const std::string &modname, User * u)
|
||||
|
||||
/* Generate the filename for the temporary copy of the module */
|
||||
std::string pbuf;
|
||||
pbuf = MODULE_PATH;
|
||||
pbuf = services_dir + "/modules/";
|
||||
#ifndef _WIN32
|
||||
pbuf += "runtime/";
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user