Skip to content

Commit

Permalink
Fix fl_dependent_option with value definition
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobkahn committed Nov 14, 2023
1 parent 633f256 commit 54c273d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/InternalUtils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function(fl_dependent_option)
set(_frce ${fl_dependent_option_FRCE})

foreach(_dep IN ITEMS ${_deps})
if(NOT "${${_dep}}" AND "${_option}" AND "${${_option}}")
if(NOT "${${_dep}}" AND DEFINED ${_option} AND "${${_option}}")
message(FATAL_ERROR "${_dep} Required to build ${_option}")
endif()
endforeach()
Expand Down

0 comments on commit 54c273d

Please sign in to comment.