From 6bb17750f167e167613fbf520401c8afcd0062d4 Mon Sep 17 00:00:00 2001 From: Ryan Richard Date: Mon, 20 May 2024 09:09:38 -0500 Subject: [PATCH] Fixes ChemCache #78 (#156) * fixes ChemCache #78 * better empty check --- cmake/cmaize/user_api/cmaize_option.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/cmaize/user_api/cmaize_option.cmake b/cmake/cmaize/user_api/cmaize_option.cmake index ee4a8caa..96481666 100644 --- a/cmake/cmaize/user_api/cmaize_option.cmake +++ b/cmake/cmaize/user_api/cmaize_option.cmake @@ -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}") + if((DEFINED "${_co_name}") AND (NOT "${${_co_name}}" STREQUAL "")) CMaizeProject( set_config_option "${_co_project}" "${_co_name}" "${${_co_name}}" )