BUILD_CONTRIB_<TAG> value is fixed at the first configure run and never
updated with the current implementation.
With this commit, BUILD_CONTRIB_<TAG> value is updated properly per each
configure run.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
function(add_nncc_contrib_directory DIR)
string(TOUPPER ${DIR} PREFIX)
- set(BUILD_CONTRIB_${PREFIX} ON CACHE BOOL "Build contrib/${dir}")
+ option(BUILD_CONTRIB_${PREFIX} "Build contrib/${dir}" ON)
if(BUILD_CONTRIB_${PREFIX})
add_subdirectory(${DIR})