Added a compile flag to hide stupid VC++ warnings

This commit is contained in:
Laurent Gomila committed 2013-03-24 12:17:44 +01:00
1 parent 44288a186c
commit 2ec849d7b9
1 file changed
+5
+5
View File
@@ -14,6 +14,11 @@ set(LIBRARY_OUTPUT_PATH "${CMAKE_BINARY_DIR}/lib")
# define the export symbol
add_definitions(-DCSFML_EXPORTS)
# disable stupid warnings with Visual C++
if(COMPILER_MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif()
# find SFML libraries (C++)
if(WINDOWS)
set(SFML_STATIC_LIBRARIES TRUE)