mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
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:
parent
076456aa91
commit
dac1ade7c4
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user