From 1cdf41a3419ebe6f45638be2edd4f7bb0461b331 Mon Sep 17 00:00:00 2001 From: Sebastian Parborg Date: Fri, 1 Mar 2024 19:35:17 +0100 Subject: [PATCH] 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. --- build_files/cmake/platform/platform_unix.cmake | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build_files/cmake/platform/platform_unix.cmake b/build_files/cmake/platform/platform_unix.cmake index c243fcd800b..deb558cbb12 100644 --- a/build_files/cmake/platform/platform_unix.cmake +++ b/build_files/cmake/platform/platform_unix.cmake @@ -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()