Commit cd24a3ec authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

exclude ffmpeg from static crt builds; correct TBB lib path on x64

parent f296e225
...@@ -710,10 +710,9 @@ if (WITH_TBB) ...@@ -710,10 +710,9 @@ if (WITH_TBB)
else() else()
get_filename_component(_TBB_LIB_PATH "${TBB_INCLUDE_DIR}/../lib" ABSOLUTE) get_filename_component(_TBB_LIB_PATH "${TBB_INCLUDE_DIR}/../lib" ABSOLUTE)
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES amd64*|x86_64*) if(${CMAKE_SYSTEM_PROCESSOR} MATCHES amd64*|x86_64* OR MSVC64)
set(_TBB_LIB_PATH "${_TBB_LIB_PATH}/intel64") set(_TBB_LIB_PATH "${_TBB_LIB_PATH}/intel64")
endif() elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES x86*|i386*|i686*)
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES x86*|i386*|i686*)
set(_TBB_LIB_PATH "${_TBB_LIB_PATH}/ia32") set(_TBB_LIB_PATH "${_TBB_LIB_PATH}/ia32")
endif() endif()
......
...@@ -13,7 +13,9 @@ add_subdirectory(features2d) ...@@ -13,7 +13,9 @@ add_subdirectory(features2d)
add_subdirectory(flann) add_subdirectory(flann)
if(MSVC OR MINGW) if(MSVC OR MINGW)
if(NOT BUILD_WITH_STATIC_CRT)
add_subdirectory(ffmpeg) add_subdirectory(ffmpeg)
endif()
endif() endif()
if(BUILD_TESTS) if(BUILD_TESTS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment