|
|
@ -333,7 +333,7 @@ endif()
|
|
|
|
# Required for building the FFmpeg headers
|
|
|
|
# Required for building the FFmpeg headers
|
|
|
|
add_definitions(-D__STDC_CONSTANT_MACROS)
|
|
|
|
add_definitions(-D__STDC_CONSTANT_MACROS)
|
|
|
|
|
|
|
|
|
|
|
|
# Reqiuired for unity build
|
|
|
|
# Required for unity build
|
|
|
|
add_definitions(-DMYGUI_DONT_REPLACE_NULLPTR)
|
|
|
|
add_definitions(-DMYGUI_DONT_REPLACE_NULLPTR)
|
|
|
|
|
|
|
|
|
|
|
|
# TinyXML
|
|
|
|
# TinyXML
|
|
|
@ -456,7 +456,7 @@ if(Boost_VERSION_STRING VERSION_GREATER_EQUAL 1.77.0)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
if(OPENMW_USE_SYSTEM_MYGUI)
|
|
|
|
if(OPENMW_USE_SYSTEM_MYGUI)
|
|
|
|
find_package(MyGUI 3.4.1 REQUIRED)
|
|
|
|
find_package(MyGUI 3.4.2 REQUIRED)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
find_package(SDL2 2.0.9 REQUIRED)
|
|
|
|
find_package(SDL2 2.0.9 REQUIRED)
|
|
|
|
find_package(OpenAL REQUIRED)
|
|
|
|
find_package(OpenAL REQUIRED)
|
|
|
@ -709,18 +709,6 @@ if (WIN32)
|
|
|
|
5054 # Deprecated operations between enumerations of different types caused by Qt headers
|
|
|
|
5054 # Deprecated operations between enumerations of different types caused by Qt headers
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
if( "${MyGUI_VERSION}" VERSION_LESS_EQUAL "3.4.0" )
|
|
|
|
|
|
|
|
set(WARNINGS_DISABLE ${WARNINGS_DISABLE}
|
|
|
|
|
|
|
|
4866 # compiler may not enforce left-to-right evaluation order for call
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( "${MyGUI_VERSION}" VERSION_LESS_EQUAL "3.4.1" )
|
|
|
|
|
|
|
|
set(WARNINGS_DISABLE ${WARNINGS_DISABLE}
|
|
|
|
|
|
|
|
4275 # non dll-interface class 'MyGUI::delegates::IDelegateUnlink' used as base for dll-interface class 'MyGUI::Widget'
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach(d ${WARNINGS_DISABLE})
|
|
|
|
foreach(d ${WARNINGS_DISABLE})
|
|
|
|
set(WARNINGS "${WARNINGS} /wd${d}")
|
|
|
|
set(WARNINGS "${WARNINGS} /wd${d}")
|
|
|
|
endforeach(d)
|
|
|
|
endforeach(d)
|
|
|
@ -791,7 +779,7 @@ if (WIN32)
|
|
|
|
#set_target_properties(openmw PROPERTIES LINK_FLAGS_MINSIZEREL "/SUBSYSTEM:WINDOWS")
|
|
|
|
#set_target_properties(openmw PROPERTIES LINK_FLAGS_MINSIZEREL "/SUBSYSTEM:WINDOWS")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
if (BUILD_OPENMW AND APPLE)
|
|
|
|
if (APPLE)
|
|
|
|
target_compile_definitions(components PRIVATE GL_SILENCE_DEPRECATION=1)
|
|
|
|
target_compile_definitions(components PRIVATE GL_SILENCE_DEPRECATION=1)
|
|
|
|
target_compile_definitions(openmw PRIVATE GL_SILENCE_DEPRECATION=1)
|
|
|
|
target_compile_definitions(openmw PRIVATE GL_SILENCE_DEPRECATION=1)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|