Fixed double quotes in VS 2010 projects generated by CMake for static builds
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1625 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
4ed1d8861c
commit
e895d6516b
2 changed files with 6 additions and 8 deletions
|
@ -33,8 +33,9 @@ macro(sfml_static_add_libraries target)
|
|||
if(NOT ${lib} MATCHES ".*\\.lib")
|
||||
set(lib ${lib}.lib)
|
||||
endif()
|
||||
if(CMAKE_CONFIGURATION_TYPES) # this condition is true when generator is "Visual Studio solution"
|
||||
# we add " so that the path will be put inside "", making possible to have spaces in it
|
||||
if(MSVC_IDE AND COMPILER_MSVC LESS 2010)
|
||||
# for Visual Studio projects < 2010, we must add double quotes
|
||||
# around paths because they may contain spaces
|
||||
set(LIBRARIES "${LIBRARIES} "\\;${lib}"\\;")
|
||||
else()
|
||||
set(LIBRARIES "${LIBRARIES} ${lib}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue