This is an automated email from the ASF dual-hosted git repository.

bnolsen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 65042e7086 cmake/Findluajit: don't require luajit_LIBRARY_DIRS for 
rockylinux builds (#10977)
65042e7086 is described below

commit 65042e7086a347792ffaea8273b8bc3eb0f8ed62
Author: Brian Olsen <brian_ols...@comcast.com>
AuthorDate: Tue Jan 9 11:02:31 2024 -0700

    cmake/Findluajit: don't require luajit_LIBRARY_DIRS for rockylinux builds 
(#10977)
---
 cmake/Findluajit.cmake | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/cmake/Findluajit.cmake b/cmake/Findluajit.cmake
index 9af2126efc..7ca7969b9f 100644
--- a/cmake/Findluajit.cmake
+++ b/cmake/Findluajit.cmake
@@ -32,7 +32,7 @@ pkg_check_modules(luajit luajit)
 include(FindPackageHandleStandardArgs)
 find_package_handle_standard_args(
   luajit
-  REQUIRED_VARS luajit_INCLUDE_DIRS luajit_LINK_LIBRARIES luajit_LIBRARIES 
luajit_LIBRARY_DIRS
+  REQUIRED_VARS luajit_INCLUDE_DIRS luajit_LINK_LIBRARIES luajit_LIBRARIES
   HANDLE_COMPONENTS
 )
 
@@ -43,6 +43,8 @@ endif()
 if(luajit_FOUND AND NOT TARGET luajit::luajit)
   add_library(luajit::luajit INTERFACE IMPORTED)
   target_include_directories(luajit::luajit INTERFACE ${luajit_INCLUDE_DIRS})
-  target_link_directories(luajit::luajit INTERFACE ${luajit_LIBRARY_DIRS})
+  if(luajit_LIBRARY_DIRS)
+    target_link_directories(luajit::luajit INTERFACE ${luajit_LIBRARY_DIRS})
+  endif()
   target_link_libraries(luajit::luajit INTERFACE ${luajit_LIBRARIES})
 endif()

Reply via email to