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

@ -48,7 +48,7 @@ if(NOT BUILD_SHARED_LIBS)
endif()
# remove SL security warnings with Visual C++
if(MSVC)
if(COMPILER_MSVC)
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
endif()