From 6628534eb587f6d96e9c8bbc0447f9685c6cea5c Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Sun, 17 Oct 2010 11:47:59 -0400 Subject: [PATCH] fix bug i just introduced in ei_add_test_internal --- cmake/EigenTesting.cmake | 2 +- cmake/FindGSL.cmake | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/EigenTesting.cmake b/cmake/EigenTesting.cmake index b2b5a7a8e..1637989ad 100644 --- a/cmake/EigenTesting.cmake +++ b/cmake/EigenTesting.cmake @@ -38,7 +38,7 @@ macro(ei_add_test_internal testname testname_with_suffix) if(${ARGC} GREATER 3) foreach(lib_to_link ${ARGV3}) - string(STRIP lib_to_link lib_to_link_stripped) + string(STRIP "${lib_to_link}" lib_to_link_stripped) string(LENGTH "${lib_to_link_stripped}" lib_to_link_stripped_length) if(${lib_to_link_stripped_length} GREATER 0) target_link_libraries(${targetname} "${lib_to_link}") diff --git a/cmake/FindGSL.cmake b/cmake/FindGSL.cmake index bf411a7f9..32d182d64 100644 --- a/cmake/FindGSL.cmake +++ b/cmake/FindGSL.cmake @@ -160,6 +160,7 @@ ELSE(WIN32) ENDIF(UNIX) ENDIF(WIN32) +set(GSL_LIBRARIES "") IF(GSL_LIBRARIES) IF(GSL_INCLUDE_DIR OR GSL_CXX_FLAGS)