Fixed various VC++ warnings.

This commit is contained in:
Camilla Berglund
2012-09-13 00:05:54 +02:00
parent 5bbbf8640e
commit 633839502c
5 changed files with 14 additions and 4 deletions
+5
View File
@@ -1,3 +1,4 @@
include_directories(${GLFW_SOURCE_DIR}/src
${GLFW_BINARY_DIR}/src
${glfw_INCLUDE_DIRS})
@@ -38,6 +39,10 @@ elseif (_GLFW_X11_GLX)
endif()
endif()
if (MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif()
add_library(glfw ${glfw_SOURCES} ${glfw_HEADERS})
set_target_properties(glfw PROPERTIES OUTPUT_NAME "${GLFW_LIB_NAME}")