From dac1ade7c4bf8b1303f20c67aeaad8d6d79628b2 Mon Sep 17 00:00:00 2001 From: laurentgom Date: Tue, 5 Oct 2010 14:31:37 +0000 Subject: [PATCH] Improved the CMake files so that paths with spaces are no longer a problem with Visual Studio projects git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1572 4e206d99-4929-0410-ac5d-dfc041789085 --- cmake/Macros.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()