Cleanup: suppress undefined variable use warnings

This commit is contained in:
Campbell Barton
2024-03-04 12:40:49 +11:00
parent 51126fab33
commit 7e9a36c1fa
@@ -37,16 +37,17 @@ else()
unset(LIBDIR_GLIBC228_ABI)
endif()
if(NOT DEFINED LIBDIR OR NOT (EXISTS ${LIBDIR}))
if(NOT DEFINED LIBDIR)
set(LIBDIR "") # Suppress undefined warnings, allow printing even if empty.
endif()
if((LIBDIR STREQUAL "") OR (NOT (EXISTS "${LIBDIR}")))
message(STATUS
"Unable to find LIBDIR: ${LIBDIR}, system libraries may be used "
"Unable to find LIBDIR: \"${LIBDIR}\", system libraries may be used "
"(disable WITH_LIBS_PRECOMPILED to suppress this message)."
)
if(DEFINED LIBDIR)
unset(LIBDIR)
endif()
endif()
endif()
# Support restoring this value once pre-compiled libraries have been handled.
set(WITH_STATIC_LIBS_INIT ${WITH_STATIC_LIBS})