diff --git a/CMakeLists.txt b/CMakeLists.txt index 31a4a19084..a40178ee82 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -585,52 +585,52 @@ if (WIN32) endforeach(d) set_target_properties(components PROPERTIES COMPILE_FLAGS "${WARNINGS} ${MT_BUILD}") - if (MSVC_VERSION GREATER_EQUAL 1900 AND MSVC_VERSION LESS 1910) + if (MSVC_VERSION GREATER_EQUAL 1915 AND MSVC_VERSION LESS 1920) target_compile_definitions(components INTERFACE _ENABLE_EXTENDED_ALIGNED_STORAGE) endif() set_target_properties(osg-ffmpeg-videoplayer PROPERTIES COMPILE_FLAGS "${WARNINGS} ${MT_BUILD}") - if (MSVC_VERSION GREATER_EQUAL 1900 AND MSVC_VERSION LESS 1910) + if (MSVC_VERSION GREATER_EQUAL 1915 AND MSVC_VERSION LESS 1920) target_compile_definitions(osg-ffmpeg-videoplayer INTERFACE _ENABLE_EXTENDED_ALIGNED_STORAGE) endif() if (BUILD_BSATOOL) set_target_properties(bsatool PROPERTIES COMPILE_FLAGS "${WARNINGS} ${MT_BUILD}") - if (MSVC_VERSION GREATER_EQUAL 1900 AND MSVC_VERSION LESS 1910) + if (MSVC_VERSION GREATER_EQUAL 1915 AND MSVC_VERSION LESS 1920) target_compile_definitions(bsatool INTERFACE _ENABLE_EXTENDED_ALIGNED_STORAGE) endif() endif() if (BUILD_ESMTOOL) set_target_properties(esmtool PROPERTIES COMPILE_FLAGS "${WARNINGS} ${MT_BUILD}") - if (MSVC_VERSION GREATER_EQUAL 1900 AND MSVC_VERSION LESS 1910) + if (MSVC_VERSION GREATER_EQUAL 1915 AND MSVC_VERSION LESS 1920) target_compile_definitions(esmtool INTERFACE _ENABLE_EXTENDED_ALIGNED_STORAGE) endif() endif() if (BUILD_ESSIMPORTER) set_target_properties(openmw-essimporter PROPERTIES COMPILE_FLAGS "${WARNINGS} ${MT_BUILD}") - if (MSVC_VERSION GREATER_EQUAL 1900 AND MSVC_VERSION LESS 1910) + if (MSVC_VERSION GREATER_EQUAL 1915 AND MSVC_VERSION LESS 1920) target_compile_definitions(openmw-essimporter INTERFACE _ENABLE_EXTENDED_ALIGNED_STORAGE) endif() endif() if (BUILD_LAUNCHER) set_target_properties(openmw-launcher PROPERTIES COMPILE_FLAGS "${WARNINGS} ${MT_BUILD}") - if (MSVC_VERSION GREATER_EQUAL 1900 AND MSVC_VERSION LESS 1910) + if (MSVC_VERSION GREATER_EQUAL 1915 AND MSVC_VERSION LESS 1920) target_compile_definitions(openmw-launcher INTERFACE _ENABLE_EXTENDED_ALIGNED_STORAGE) endif() endif() if (BUILD_MWINIIMPORTER) set_target_properties(openmw-iniimporter PROPERTIES COMPILE_FLAGS "${WARNINGS} ${MT_BUILD}") - if (MSVC_VERSION GREATER_EQUAL 1900 AND MSVC_VERSION LESS 1910) + if (MSVC_VERSION GREATER_EQUAL 1915 AND MSVC_VERSION LESS 1920) target_compile_definitions(openmw-iniimporter INTERFACE _ENABLE_EXTENDED_ALIGNED_STORAGE) endif() endif() if (BUILD_OPENCS) set_target_properties(openmw-cs PROPERTIES COMPILE_FLAGS "${WARNINGS} ${MT_BUILD}") - if (MSVC_VERSION GREATER_EQUAL 1900 AND MSVC_VERSION LESS 1910) + if (MSVC_VERSION GREATER_EQUAL 1915 AND MSVC_VERSION LESS 1920) target_compile_definitions(openmw-cs INTERFACE _ENABLE_EXTENDED_ALIGNED_STORAGE) endif() endif() @@ -638,12 +638,12 @@ if (WIN32) if (BUILD_OPENMW) if (OPENMW_UNITY_BUILD) set_target_properties(openmw PROPERTIES COMPILE_FLAGS "${WARNINGS} ${MT_BUILD} /bigobj") - if (MSVC_VERSION GREATER_EQUAL 1900 AND MSVC_VERSION LESS 1910) + if (MSVC_VERSION GREATER_EQUAL 1915 AND MSVC_VERSION LESS 1920) target_compile_definitions(openmw INTERFACE _ENABLE_EXTENDED_ALIGNED_STORAGE) endif() else() set_target_properties(openmw PROPERTIES COMPILE_FLAGS "${WARNINGS} ${MT_BUILD}") - if (MSVC_VERSION GREATER_EQUAL 1900 AND MSVC_VERSION LESS 1910) + if (MSVC_VERSION GREATER_EQUAL 1915 AND MSVC_VERSION LESS 1920) target_compile_definitions(openmw INTERFACE _ENABLE_EXTENDED_ALIGNED_STORAGE) endif() endif() @@ -651,7 +651,7 @@ if (WIN32) if (BUILD_WIZARD) set_target_properties(openmw-wizard PROPERTIES COMPILE_FLAGS "${WARNINGS} ${MT_BUILD}") - if (MSVC_VERSION GREATER_EQUAL 1900 AND MSVC_VERSION LESS 1910) + if (MSVC_VERSION GREATER_EQUAL 1915 AND MSVC_VERSION LESS 1920) target_compile_definitions(openmw-wizard INTERFACE _ENABLE_EXTENDED_ALIGNED_STORAGE) endif() endif()