Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion openmp/runtime/cmake/LibompDefinitions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ function(libomp_get_definitions_flags cppflags)
libomp_append(cppflags_local "-D _CRT_SECURE_NO_DEPRECATE")
libomp_append(cppflags_local "-D _WINDOWS")
libomp_append(cppflags_local "-D _WINNT")
libomp_append(cppflags_local "-D _WIN32_WINNT=0x0501")
if (MSVC)
# Force a default target OS version with MSVC based toolchains.
# (For MinGW based ones, use the toolchain's default target or what
# the user set in CMake flags.)
libomp_append(cppflags_local "-D _WIN32_WINNT=0x0501")
endif()
libomp_append(cppflags_local "-D _USRDLL")
libomp_append(cppflags_local "-D _ITERATOR_DEBUG_LEVEL=0" IF_TRUE DEBUG_BUILD)
libomp_append(cppflags_local "-D _DEBUG" IF_TRUE DEBUG_BUILD)
Expand Down
Loading