mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-27 04:28:52 -05:00
Formatting, limited to MSVC.
This commit is contained in:
parent
0627a2c2eb
commit
c1931eda37
|
@ -15,8 +15,6 @@ option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
|
||||||
|
|
||||||
find_package(OpenGL REQUIRED)
|
find_package(OpenGL REQUIRED)
|
||||||
|
|
||||||
option(USE_MSVC_RUNTIME_LIBRARY_DLL "Use MSVC runtime library DLL" ON)
|
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
# Enable all warnings on GCC, regardless of OS
|
# Enable all warnings on GCC, regardless of OS
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
|
@ -56,16 +54,20 @@ if (_GLFW_WIN32_WGL)
|
||||||
list(APPEND glfw_INCLUDE_DIRS ${OPENGL_INCLUDE_DIR})
|
list(APPEND glfw_INCLUDE_DIRS ${OPENGL_INCLUDE_DIR})
|
||||||
list(APPEND glfw_LIBRARIES ${OPENGL_gl_LIBRARY})
|
list(APPEND glfw_LIBRARIES ${OPENGL_gl_LIBRARY})
|
||||||
|
|
||||||
|
if (MSVC)
|
||||||
|
option(USE_MSVC_RUNTIME_LIBRARY_DLL "Use MSVC runtime library DLL" ON)
|
||||||
|
|
||||||
if (NOT USE_MSVC_RUNTIME_LIBRARY_DLL)
|
if (NOT USE_MSVC_RUNTIME_LIBRARY_DLL)
|
||||||
foreach(flag_var CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELWITHDEBINFO)
|
foreach (flag CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELWITHDEBINFO)
|
||||||
if(${flag_var} MATCHES "/MD")
|
if (${flag} MATCHES "/MD")
|
||||||
string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
|
string(REGEX REPLACE "/MD" "/MT" ${flag} "${${flag}}")
|
||||||
endif(${flag_var} MATCHES "/MD")
|
endif()
|
||||||
if(${flag_var} MATCHES "/MDd")
|
if (${flag} MATCHES "/MDd")
|
||||||
string(REGEX REPLACE "/MDd" "/MTd" ${flag_var} "${${flag_var}}")
|
string(REGEX REPLACE "/MDd" "/MTd" ${flag} "${${flag}}")
|
||||||
endif(${flag_var} MATCHES "/MDd")
|
endif()
|
||||||
endforeach(flag_var)
|
endforeach()
|
||||||
endif(NOT USE_MSVC_RUNTIME_LIBRARY_DLL)
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
set(_GLFW_NO_DLOAD_WINMM ${BUILD_SHARED_LIBS})
|
set(_GLFW_NO_DLOAD_WINMM ${BUILD_SHARED_LIBS})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user