瀏覽代碼

UI: Remove NOMINMAX from CMake scripts

If we want NOMINMAX globally, we should probably define at top level.
jpark37 4 年之前
父節點
當前提交
e181a23bed

+ 0 - 2
UI/CMakeLists.txt

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

+ 0 - 1
UI/frontend-plugins/decklink-output-ui/CMakeLists.txt

@@ -42,7 +42,6 @@ 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

+ 0 - 1
UI/frontend-plugins/frontend-tools/CMakeLists.txt

@@ -73,7 +73,6 @@ 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