Skip to content

Commit

Permalink
better empty check
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmrichard committed May 20, 2024
1 parent 88c5614 commit 4ece0c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/cmaize/user_api/cmaize_option.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function(cmaize_option _co_name _co_default_value _co_docstring)

# A set CMake variable (this includes CMake's cache) takes precedence over
# all else
if(DEFINED "${_co_name}" AND DEFINED "${${_co_name}}")
if((DEFINED "${_co_name}") AND (NOT "${${_co_name}}" STREQUAL ""))
CMaizeProject(
set_config_option "${_co_project}" "${_co_name}" "${${_co_name}}"
)
Expand Down

0 comments on commit 4ece0c0

Please sign in to comment.