Fix: CMake LIBDIR check not working as intended after cleanup

After 65f5e8b775, the LIBDIR cmake check would actually not print any
warnings if the LIBDIR could not be found automatically.
This commit is contained in:
Sebastian Parborg 2024-03-01 19:35:17 +01:00
parent 5f7b5a922d
commit 1cdf41a341
1 changed files with 6 additions and 6 deletions

View File

@ -37,12 +37,12 @@ else()
unset(LIBDIR_GLIBC228_ABI)
endif()
if(DEFINED LIBDIR)
if(NOT (EXISTS ${LIBDIR}))
message(STATUS
"Unable to find LIBDIR: ${LIBDIR}, system libraries may be used "
"(disable WITH_LIBS_PRECOMPILED to suppress this message)."
)
if(NOT DEFINED LIBDIR OR NOT (EXISTS ${LIBDIR}))
message(STATUS
"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()