Commit 2a50386a authored by Daniel Leung's avatar Daniel Leung Committed by Christopher Friedt
Browse files

cmake: add zephyr_library_include_directories_ifdef()



The zephyr_library_* variant is missing the ability to
include directories based on kconfig. So add the function.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 9fa54374
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1451,6 +1451,12 @@ function(zephyr_library_compile_definitions_ifdef feature_toggle item)
  endif()
endfunction()

function(zephyr_library_include_directories_ifdef feature_toggle)
  if(${${feature_toggle}})
    zephyr_library_include_directories(${ARGN})
  endif()
endfunction()

function(zephyr_library_compile_options_ifdef feature_toggle item)
  if(${${feature_toggle}})
    zephyr_library_compile_options(${item} ${ARGN})