diff --git a/add_target.cmake b/add_target.cmake index a2a8dea..a73cebf 100644 --- a/add_target.cmake +++ b/add_target.cmake @@ -23,7 +23,7 @@ function(add_target name) # the found_options list must have length one # at the end of this loop foreach(opt IN LISTS options) - if (DEFINED io1_${opt}) + if (io1_${opt}) list(APPEND found_option ${opt}) endif() endforeach()