aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cmake/EigenTesting.cmake2
-rw-r--r--cmake/FindGSL.cmake1
2 files changed, 2 insertions, 1 deletions
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)