Merge pull request #1642 from alalek:cmake_cleanup_targets

This commit is contained in:
Roman Donchenko 2013-10-18 18:19:35 +04:00 committed by OpenCV Buildbot
commit df279150ae
2 changed files with 2 additions and 1 deletions

View File

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

View File

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