From fc258ab29e5ecc9dc1651b38ef899a5f535a2ca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yohann=20B=C3=A9n=C3=A9dic?= Date: Tue, 15 Mar 2022 07:10:59 +0100 Subject: [PATCH] options with cmake_parse_arguments are always defined, so the test was wrong. --- add_target.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()