Skip to content

Commit

Permalink
options with cmake_parse_arguments are always defined, so the test wa…
Browse files Browse the repository at this point in the history
…s wrong.
  • Loading branch information
yobeonline committed Mar 15, 2022
1 parent dae3835 commit fc258ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion add_target.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit fc258ab

Please sign in to comment.