From 787e360fa9878117845ad553357dae7869f1b0c9 Mon Sep 17 00:00:00 2001 From: Tyler Wilding Date: Sun, 16 Aug 2026 15:01:12 -0400 Subject: [PATCH] cmake: look in `/usr/lib64` for libraries as well (#4379) --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f6ddddf93a..ae88fa2e55 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -202,6 +202,13 @@ function(build_third_party_lib dir_name target_name) endfunction() # Dependencies and Libraries +# - for reasons outside of my understanding, on some distros CMake can't find a library if it's +# in `/usr/lib64` instead of `/usr/lib`. This problem was encountered for libcurl not being able +# to find OpenSSL even though its most definitely installed! +if(UNIX AND NOT APPLE) + list(APPEND CMAKE_LIBRARY_PATH "/usr/lib64") +endif() + # includes relative to top level jak-project folder include_directories(./)