mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-25 05:03:36 +01:00
Added a compile flag to hide stupid VC++ warnings
This commit is contained in:
1 parent
44288a186c
commit
2ec849d7b9
1 file changed
+5
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user