From 196d3adb29445a643059a3b2fd60814e6d30b5ce Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Thu, 11 Oct 2007 09:29:35 +0000 Subject: workaround for cmake error: "syntax error, unexpected cal_ERROR, expecting $end (19)," on win32 svn path=/trunk/KDE/kdelibs/; revision=724081 --- modules/FindLibraryWithDebug.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/FindLibraryWithDebug.cmake') diff --git a/modules/FindLibraryWithDebug.cmake b/modules/FindLibraryWithDebug.cmake index a2593974..9022d80c 100644 --- a/modules/FindLibraryWithDebug.cmake +++ b/modules/FindLibraryWithDebug.cmake @@ -31,7 +31,10 @@ MACRO(FIND_LIBRARY_WITH_DEBUG var_name win32_dbg_postfix_name dgb_postfix libnam ELSE(NOT WIN32) # 1. get all possible libnames - SET(args ${ARGN}) + LIST(LENGTH ARGN listCount) + if (listCount GREATER 0) + set (args ${ARGN}) + endif (listCount GREATER 0) SET(newargs "") SET(libnames_release "") SET(libnames_debug "") -- cgit v1.2.1