cmake: prefer using CMAKE_SYSTEM_PROCESSOR / CMAKE_SIZEOF_VOID_P

Drop:
- discouraged CMAKE_CL_64
- MSVC64
- MINGW64
This commit is contained in:
Alexander Alekhin
2019-12-10 22:35:36 +00:00
parent e47f3e5bcc
commit 6ea29a7696
10 changed files with 102 additions and 56 deletions

View File

@@ -40,11 +40,8 @@ if (X86 AND UNIX AND NOT APPLE AND NOT ANDROID AND BUILD_SHARED_LIBS)
endif()
set(IPP_X64 0)
if(CMAKE_CXX_SIZEOF_DATA_PTR EQUAL 8)
set(IPP_X64 1)
endif()
if(CMAKE_CL_64)
set(IPP_X64 1)
if(X86_64)
set(IPP_X64 1)
endif()
# This function detects Intel IPP version by analyzing .h file