cmake: extensions: Remove macro zephyr_library_ifdef.

This cmake macro was changing the control flow of the cmake files.
It is not advisable to modify the callee control flow from inside
a cmake macro.
Hence removing all instances of this macro from the build system.

Fixes: GH-7565

Signed-off-by: Adithya Baglody <adithya.nagaraj.baglody@intel.com>
This commit is contained in:
Adithya Baglody 2018-05-24 14:49:59 +05:30 committed by Anas Nashif
parent 8c812900e1
commit 5d22834e9a

View file

@ -923,18 +923,6 @@ macro(list_append_ifdef feature_toggle list)
endif()
endmacro()
# Checks if a feature is enabled and then does the same operation as
# zephyr_library. If it finds that the feature is not set it will not
# create a new library and will stop processing the rest of
# the CMakeFile.txt
macro(zephyr_library_ifdef feature_toggle)
if(${${feature_toggle}})
zephyr_library()
else()
return()
endif()
endmacro()
# 3.2. *_ifndef
# See 3.1 *_ifdef
function(set_ifndef variable value)