From 45ee7c12d03b496bbc9d42bfd1a82d48fbad9a4d Mon Sep 17 00:00:00 2001 From: Naram Qashat Date: Tue, 25 Dec 2012 17:10:43 -0500 Subject: Clean up the logic in adding extra library directories, adding to LDFLAGS isn't needed. --- CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8133d45aa..d727b84f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -216,10 +216,7 @@ endif(EXTRA_INCLUDE) # If extra library directories were specified, tell cmake about them. if(EXTRA_LIBS) - foreach(LIB ${EXTRA_LIBS}) - set(LDFLAGS "${LDFLAGS} -L${LIB}") - link_directories(${LIB}) - endforeach(LIB) + link_directories(${EXTRA_LIBS}) endif(EXTRA_LIBS) # Find gettext -- cgit