mirror of
https://github.com/blender/blender
synced 2026-09-26 16:15:47 +03:00
Cleanup: suppress undefined variable use warnings
This commit is contained in:
parent
51126fab33
commit
7e9a36c1fa
1 changed files with 6 additions and 5 deletions
|
|
@ -37,14 +37,15 @@ 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()
|
||||
unset(LIBDIR)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue