diff --git a/csharp-api/CMakeLists.txt b/csharp-api/CMakeLists.txt index 2febd552..923aa76f 100644 --- a/csharp-api/CMakeLists.txt +++ b/csharp-api/CMakeLists.txt @@ -104,6 +104,7 @@ function(check_dlls_exist DLL_PREFIX DLLS VAR_NAME) endforeach() if (NOT ${${VAR_NAME}}) + set(${VAR_NAME} FALSE PARENT_SCOPE) message(STATUS "One or more specified DLLs do not exist (${DLL_PREFIX})") else() message(STATUS "All specified DLLs exist (${DLL_PREFIX})") diff --git a/csharp-api/cmake.toml b/csharp-api/cmake.toml index 11f7ebe4..389f08cc 100644 --- a/csharp-api/cmake.toml +++ b/csharp-api/cmake.toml @@ -77,6 +77,7 @@ function(check_dlls_exist DLL_PREFIX DLLS VAR_NAME) endforeach() if (NOT ${${VAR_NAME}}) + set(${VAR_NAME} FALSE PARENT_SCOPE) message(STATUS "One or more specified DLLs do not exist (${DLL_PREFIX})") else() message(STATUS "All specified DLLs exist (${DLL_PREFIX})")