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
This commit is contained in:
laurentgom 2010-10-05 14:31:37 +00:00
parent 076456aa91
commit dac1ade7c4

View File

@ -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} &quot\\;${lib}&quot\\;")
endforeach()
set_target_properties(${target} PROPERTIES STATIC_LIBRARY_FLAGS ${LIBRARIES})
endif()