cmake: cleanup OpenCVModules_TARGETS from cache

This will allow to disable modules between cmake runs
pull/1642/head
Alexander Alekhin 12 years ago
parent 578e984739
commit 83b7fbe376
  1. 2
      CMakeLists.txt
  2. 1
      cmake/OpenCVUtils.cmake

@ -62,6 +62,8 @@ endif()
include(cmake/OpenCVUtils.cmake) include(cmake/OpenCVUtils.cmake)
ocv_clear_vars(OpenCVModules_TARGETS)
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# Break in case of popular CMake configuration mistakes # Break in case of popular CMake configuration mistakes
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------

@ -458,7 +458,6 @@ function(ocv_install_target)
if(DEFINED __package) if(DEFINED __package)
list(APPEND ${__package}_TARGETS ${__target}) list(APPEND ${__package}_TARGETS ${__target})
list(REMOVE_DUPLICATES ${__package}_TARGETS)
set(${__package}_TARGETS "${${__package}_TARGETS}" CACHE INTERNAL "List of ${__package} targets") set(${__package}_TARGETS "${${__package}_TARGETS}" CACHE INTERNAL "List of ${__package} targets")
endif() endif()

Loading…
Cancel
Save