From cc64a002167bb994a9e5c29b1fc45528161ad37b Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Sat, 12 Sep 2009 05:49:15 +0000 Subject: [PATCH] Fix problem with CMake's auto-library search when being run on a subdirectory of src/modules, spotted with help from DukePyrolator. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2499 5417fbe8-f217-4b02-8779-1006273d7864 --- TODO | 1 - src/modules/CMakeLists.txt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/TODO b/TODO index aa6e116e2..0fcc6fcb2 100644 --- a/TODO +++ b/TODO @@ -18,7 +18,6 @@ Legend: [x] Settable oper flags (split into types containing privs+commands, allow each oper to be set to a type, like we do with insp?) Outstanding issues: -- Correct CMake's auto-library search - Add some events that were not present before but useful for future versions 1.9.2 diff --git a/src/modules/CMakeLists.txt b/src/modules/CMakeLists.txt index e9863b6e3..8dc8140ab 100644 --- a/src/modules/CMakeLists.txt +++ b/src/modules/CMakeLists.txt @@ -95,7 +95,7 @@ foreach(FILE ${MODULES_FILES}) # Append this source file's linker flags to the subdirectoy's linker flags, if there are any to append if(TEMP_LDFLAGS) - append_to_list(SUBDIR_LDFLAGS ${TEMP_LDFLAGS}) + set(SUBDIR_LDFLAGS "${SUBDIR_LDFLAGS} ${TEMP_LDFLAGS}") endif(TEMP_LDFLAGS) # Append this source file's extra dependencies to the subdirector's extra dependencies, if there are any to append if(TEMP_DEPENDENCIES)