summaryrefslogtreecommitdiff
path: root/cmake/helpers/EflMacros.cmake
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-01-23 16:03:30 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-01-23 16:09:50 -0200
commit7a32c13da76a8418631dc5c2a486ca6c90c55382 (patch)
tree758f6e5142fd3bab1f08d5192eddd57f5b2e3613 /cmake/helpers/EflMacros.cmake
parentf59dfc3ab8ca43761540c0f0d1e37c75740aa0f9 (diff)
cmake: reset temporary lists from cache.
otherwise new cmake runs will duplicate the lists over and over again.
Diffstat (limited to 'cmake/helpers/EflMacros.cmake')
-rw-r--r--cmake/helpers/EflMacros.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmake/helpers/EflMacros.cmake b/cmake/helpers/EflMacros.cmake
index dee0c565e7..b4f84d55c6 100644
--- a/cmake/helpers/EflMacros.cmake
+++ b/cmake/helpers/EflMacros.cmake
@@ -23,6 +23,11 @@ function(SET_GLOBAL _var _value)
23 set(${_var} "${_value}" CACHE INTERNAL "${ARGN}") 23 set(${_var} "${_value}" CACHE INTERNAL "${ARGN}")
24endfunction() 24endfunction()
25 25
26unset(EFL_ALL_OPTIONS CACHE)
27unset(EFL_ALL_LIBS CACHE)
28unset(EFL_ALL_TESTS CACHE)
29unset(EFL_PKG_CONFIG_MISSING_OPTIONAL CACHE)
30
26# EFL_OPTION(Name Help Default) 31# EFL_OPTION(Name Help Default)
27# 32#
28# Declare an option() that will be automatically printed by 33# Declare an option() that will be automatically printed by
@@ -441,6 +446,9 @@ endmacro()
441# 446#
442# Internal function to process modules of current EFL_LIB() 447# Internal function to process modules of current EFL_LIB()
443function(_EFL_LIB_PROCESS_MODULES_INTERNAL) 448function(_EFL_LIB_PROCESS_MODULES_INTERNAL)
449 unset(${EFL_LIB_CURRENT}_MODULES CACHE)
450 unset(${EFL_LIB_CURRENT}_STATIC_MODULES CACHE)
451
444 if(EXISTS ${EFL_MODULES_SOURCE_DIR}/CMakeLists.txt) 452 if(EXISTS ${EFL_MODULES_SOURCE_DIR}/CMakeLists.txt)
445 message(FATAL_ERROR "${EFL_MODULES_SOURCE_DIR}/CMakeLists.txt shouldn't exist. Modules are expected to be defined in their own directory.") 453 message(FATAL_ERROR "${EFL_MODULES_SOURCE_DIR}/CMakeLists.txt shouldn't exist. Modules are expected to be defined in their own directory.")
446 else() 454 else()
@@ -494,6 +502,8 @@ endfunction()
494# 502#
495# Internal function to process tests of current EFL_LIB() 503# Internal function to process tests of current EFL_LIB()
496function(_EFL_LIB_PROCESS_TESTS_INTERNAL) 504function(_EFL_LIB_PROCESS_TESTS_INTERNAL)
505 unset(${EFL_LIB_CURRENT}_TESTS CACHE)
506
497 if(EXISTS ${EFL_TESTS_SOURCE_DIR}/CMakeLists.txt) 507 if(EXISTS ${EFL_TESTS_SOURCE_DIR}/CMakeLists.txt)
498 EFL_TEST(${EFL_LIB_CURRENT}) 508 EFL_TEST(${EFL_LIB_CURRENT})
499 else() 509 else()