summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorNaram Qashat <cyberbotx@cyberbotx.com>2011-11-20 18:32:47 -0500
committerNaram Qashat <cyberbotx@cyberbotx.com>2011-11-20 18:32:47 -0500
commit5a17b060feedd6037a2037f7cea23fd58129541e (patch)
treed8a731ca9a5fc361796ceb3cf885cc9d3b2da9d7 /CMakeLists.txt
parentbf8e4ac71484cfe30bcddd02cb91900875dc34b2 (diff)
Really fix linking in libraries (even if gettext isn't found on *nix), and a minor nitpick about the leading spaces on LINK_LIBS.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0249d831e..18e0f9177 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -357,6 +357,10 @@ endif(CXXFLAGS)
if(LDFLAGS)
strip_string(${LDFLAGS} LDFLAGS)
endif(LDFLAGS)
+# Strip the leading and trailing spaces from the link libraries
+if(LINK_LIBS)
+ strip_string(${LINK_LIBS} LINK_LIBS)
+endif(LINK_LIBS)
# Search for the following programs
find_program(GREP grep)