diff --git a/cmake/Macros.cmake b/cmake/Macros.cmake index 063a7e4a5..173957d0b 100644 --- a/cmake/Macros.cmake +++ b/cmake/Macros.cmake @@ -33,7 +33,9 @@ macro(sfml_static_add_libraries target) if(NOT ${lib} MATCHES ".*\\.lib") set(lib ${lib}.lib) endif() - set(LIBRARIES "${LIBRARIES} ${lib}") + # we add " so that the path will be put into "", + # making possible to have spaces in it + set(LIBRARIES "${LIBRARIES} "\\;${lib}"\\;") endforeach() set_target_properties(${target} PROPERTIES STATIC_LIBRARY_FLAGS ${LIBRARIES}) endif()