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")
|
if(NOT ${lib} MATCHES ".*\\.lib")
|
||||||
set(lib ${lib}.lib)
|
set(lib ${lib}.lib)
|
||||||
endif()
|
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()
|
endforeach()
|
||||||
set_target_properties(${target} PROPERTIES STATIC_LIBRARY_FLAGS ${LIBRARIES})
|
set_target_properties(${target} PROPERTIES STATIC_LIBRARY_FLAGS ${LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user