[x265] (REVISION) MinGW: 64-bits vs. XP compatibility
JMK
three4teen16 at coldmail.nu
Mon Mar 31 22:41:05 CEST 2014
Perhaps this way is much better...
IN «source/CMakeLists.txt»:
# ************************************************************************
if(WIN32)
if(NOT MINGW)
# Visual leak detector
find_package(VLD QUIET)
if(VLD_FOUND)
add_definitions(-DHAVE_VLD)
include_directories(${VLD_INCLUDE_DIRS})
set(PLATFORM_LIBS ${PLATFORM_LIBS} ${VLD_LIBRARIES})
link_directories(${VLD_LIBRARY_DIRS})
endif()
option(WINXP_SUPPORT "Make binaries compatible with Windows XP" OFF)
if(WINXP_SUPPORT)
# force use of workarounds for CONDITION_VARIABLE and atomic
# intrinsics introduced after XP
add_definitions(-D_WIN32_WINNT=_WIN32_WINNT_WINXP)
endif()
endif()
if(MINGW)
if(X86 AND NOT X64)
add_definitions(-D_WIN32_WINNT=_WIN32_WINNT_WINXP)
elseif(X64)
add_definitions(-D_WIN32_WINNT=_WIN32_WINNT_VISTA)
endif()
endif()
endif()
# ************************************************************************
_____________________________________________________________
ps. Do you like my email address? Get yourself a coldmail.nu address too
http://www.coldmail.nu (it's free!)
More information about the x265-devel
mailing list