diff options
-rw-r--r-- | modules/FindLibraryWithDebug.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
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 "") |