Made CMake files compatible with VC++ 2011, and other minor improvements

This commit is contained in:
Laurent Gomila 2011-12-28 21:39:23 +01:00
parent 94a9dfbdfb
commit 4107505a05
3 changed files with 15 additions and 9 deletions

View file

@ -33,7 +33,7 @@ macro(sfml_static_add_libraries target)
if(NOT ${lib} MATCHES ".*\\.lib")
set(lib ${lib}.lib)
endif()
if(MSVC_IDE AND COMPILER_MSVC LESS 2010)
if(MSVC_IDE AND MSVC_VERSION LESS 2010)
# for Visual Studio projects < 2010, we must add double quotes
# around paths because they may contain spaces
set(LIBRARIES "${LIBRARIES} &quot\\;${lib}&quot\\;")