From: Gustavo Sverzut Barbieri Date: Mon, 23 Jan 2017 18:03:30 +0000 (-0200) Subject: cmake: reset temporary lists from cache. X-Git-Tag: upstream/1.20.0~2328 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a32c13da76a8418631dc5c2a486ca6c90c55382;p=platform%2Fupstream%2Fefl.git cmake: reset temporary lists from cache. otherwise new cmake runs will duplicate the lists over and over again. --- diff --git a/cmake/helpers/EflMacros.cmake b/cmake/helpers/EflMacros.cmake index dee0c56..b4f84d5 100644 --- a/cmake/helpers/EflMacros.cmake +++ b/cmake/helpers/EflMacros.cmake @@ -23,6 +23,11 @@ function(SET_GLOBAL _var _value) set(${_var} "${_value}" CACHE INTERNAL "${ARGN}") endfunction() +unset(EFL_ALL_OPTIONS CACHE) +unset(EFL_ALL_LIBS CACHE) +unset(EFL_ALL_TESTS CACHE) +unset(EFL_PKG_CONFIG_MISSING_OPTIONAL CACHE) + # EFL_OPTION(Name Help Default) # # Declare an option() that will be automatically printed by @@ -441,6 +446,9 @@ endmacro() # # Internal function to process modules of current EFL_LIB() function(_EFL_LIB_PROCESS_MODULES_INTERNAL) + unset(${EFL_LIB_CURRENT}_MODULES CACHE) + unset(${EFL_LIB_CURRENT}_STATIC_MODULES CACHE) + if(EXISTS ${EFL_MODULES_SOURCE_DIR}/CMakeLists.txt) message(FATAL_ERROR "${EFL_MODULES_SOURCE_DIR}/CMakeLists.txt shouldn't exist. Modules are expected to be defined in their own directory.") else() @@ -494,6 +502,8 @@ endfunction() # # Internal function to process tests of current EFL_LIB() function(_EFL_LIB_PROCESS_TESTS_INTERNAL) + unset(${EFL_LIB_CURRENT}_TESTS CACHE) + if(EXISTS ${EFL_TESTS_SOURCE_DIR}/CMakeLists.txt) EFL_TEST(${EFL_LIB_CURRENT}) else()