mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
Drop the legacy CMake options.
3.0 seems like an appropriate time to do that.
This commit is contained in:
parent
ef91d7e883
commit
abe4219256
@ -220,10 +220,6 @@ OCV_OPTION(OPENCV_WARNINGS_ARE_ERRORS "Treat warnings as errors"
|
||||
# ===================================================
|
||||
OCV_OPTION(CMAKE_VERBOSE "Verbose mode" OFF )
|
||||
|
||||
# backward compatibility
|
||||
# ===================================================
|
||||
include(cmake/OpenCVLegacyOptions.cmake OPTIONAL)
|
||||
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# Get actual OpenCV version number from sources
|
||||
|
@ -1,25 +0,0 @@
|
||||
macro(ocv_legacy_option old superseded_by)
|
||||
if(DEFINED ${old})
|
||||
if(ARGV2)
|
||||
set(${superseded_by} ${${old}} CACHE ${ARGV2} "Set via depricated ${old}" FORCE)
|
||||
else()
|
||||
set(${superseded_by} ${${old}} CACHE BOOL "Set via depricated ${old}" FORCE)
|
||||
endif()
|
||||
unset(${old} CACHE)
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
ocv_legacy_option(BUILD_NEW_PYTHON_SUPPORT BUILD_opencv_python)
|
||||
ocv_legacy_option(BUILD_JAVA_SUPPORT BUILD_opencv_java)
|
||||
ocv_legacy_option(WITH_ANDROID_CAMERA BUILD_opencv_androidcamera)
|
||||
ocv_legacy_option(WITH_VIDEOINPUT WITH_DSHOW)
|
||||
|
||||
if(DEFINED OPENCV_BUILD_3RDPARTY_LIBS)
|
||||
set(BUILD_ZLIB ${OPENCV_BUILD_3RDPARTY_LIBS} CACHE BOOL "Set via depricated OPENCV_BUILD_3RDPARTY_LIBS" FORCE)
|
||||
set(BUILD_TIFF ${OPENCV_BUILD_3RDPARTY_LIBS} CACHE BOOL "Set via depricated OPENCV_BUILD_3RDPARTY_LIBS" FORCE)
|
||||
set(BUILD_JASPER ${OPENCV_BUILD_3RDPARTY_LIBS} CACHE BOOL "Set via depricated OPENCV_BUILD_3RDPARTY_LIBS" FORCE)
|
||||
set(BUILD_JPEG ${OPENCV_BUILD_3RDPARTY_LIBS} CACHE BOOL "Set via depricated OPENCV_BUILD_3RDPARTY_LIBS" FORCE)
|
||||
set(BUILD_PNG ${OPENCV_BUILD_3RDPARTY_LIBS} CACHE BOOL "Set via depricated OPENCV_BUILD_3RDPARTY_LIBS" FORCE)
|
||||
unset(OPENCV_BUILD_3RDPARTY_LIBS CACHE)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user