UI: Add -DNOMINMAX to CMake on MSVC

This commit is contained in:
Tommy Vercetti 2021-05-22 18:40:46 -05:00 committed by Jim
parent e1cf7c0e4b
commit 5912074271
3 changed files with 4 additions and 0 deletions

View File

@ -102,6 +102,8 @@ include_directories(${LIBCURL_INCLUDE_DIRS})
add_definitions(${LIBCURL_DEFINITIONS})
if(WIN32)
add_definitions(-DNOMINMAX)
include_directories(${BLAKE2_INCLUDE_DIR})
set(obs_PLATFORM_SOURCES

View File

@ -42,6 +42,7 @@ set(decklink-ouput-ui_UI
)
if(WIN32)
add_definitions(-DNOMINMAX)
set(MODULE_DESCRIPTION "OBS DeckLink Output UI")
configure_file(${CMAKE_SOURCE_DIR}/cmake/winrc/obs-module.rc.in decklink-ouput-ui.rc)
list(APPEND decklink-ouput-ui_SOURCES

View File

@ -73,6 +73,7 @@ if(SCRIPTING_ENABLED)
endif()
if(WIN32)
add_definitions(-DNOMINMAX)
set(MODULE_DESCRIPTION "OBS Frontend Tools")
configure_file(${CMAKE_SOURCE_DIR}/cmake/winrc/obs-module.rc.in frontend-tools.rc)
set(frontend-tools_PLATFORM_SOURCES