Fix: CMake LIBDIR check not working as intended after cleanup
After ca8dc11a85
, the LIBDIR cmake check would actually not print any
warnings or error out if the LIBDIR could not be found automatically.
Pull Request: https://projects.blender.org/blender/blender/pulls/118975
This commit is contained in:
parent
c1b5d9d6bd
commit
4b114861c0
|
@ -37,8 +37,7 @@ else()
|
|||
unset(LIBDIR_GLIBC228_ABI)
|
||||
endif()
|
||||
|
||||
if(DEFINED LIBDIR)
|
||||
if(NOT (EXISTS ${LIBDIR}))
|
||||
if(NOT DEFINED LIBDIR OR NOT (EXISTS ${LIBDIR}))
|
||||
if(WITH_STRICT_BUILD_OPTIONS)
|
||||
message(SEND_ERROR
|
||||
"Unable to find LIBDIR: ${LIBDIR}. "
|
||||
|
@ -50,9 +49,10 @@ else()
|
|||
"(disable WITH_LIBS_PRECOMPILED to suppress this message)."
|
||||
)
|
||||
endif()
|
||||
if(DEFINED LIBDIR)
|
||||
unset(LIBDIR)
|
||||
set(WITH_LIBS_PRECOMPILED OFF)
|
||||
endif()
|
||||
set(WITH_LIBS_PRECOMPILED OFF)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in New Issue