CMakeLists.txt: fix add_debug_variants() to work on Debug build. Re: #201 [ci skip]

This commit is contained in:
Stinkfist0
2017-05-11 17:22:21 +03:00
committed by Thomas Krijnen
parent af2799acd4
commit 68b432f6c0
+1
View File
@@ -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 <lib> debug <lib>", needs to be a list instead of a string
foreach(lib ${LIBRARIES_STR})
list(APPEND LIBRARIES optimized)