diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 187a0916e5..993f6ec8d2 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -128,6 +128,7 @@ MESSAGE(STATUS "Boost libraries found in ${Boost_LIBRARY_DIRS}") # make sure the lib variable ends with not just contains it. function(add_debug_variants NAME LIBRARIES POSTFIX) set(LIBRARIES_STR "${LIBRARIES}") + set(LIBRARIES "") # the result, "optimized debug ", needs to be a list instead of a string foreach(lib ${LIBRARIES_STR}) list(APPEND LIBRARIES optimized)