CMake: fix detection of Lua development package

See https://www.wireshark.org/lists/wireshark-dev/202003/msg00054.html

Change-Id: I10a854a4dcd5320fce8ca3e6ff5722225c56c5d9
Reviewed-on: https://code.wireshark.org/review/36494
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Pascal Quantin 2020-03-19 09:01:31 +01:00 committed by Anders Broman
parent e59c89b58f
commit 2ba42a047e
1 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ find_package_handle_standard_args(LUA
REQUIRED_VARS LUA_LIBRARY LUA_INCLUDE_DIR LUA_VERSION_NUM
VERSION_VAR LUA_VERSION_NUM)
IF(LUA_LIBRARY)
IF(LUA_FOUND)
SET( LUA_LIBRARIES "${LUA_LIBRARY}")
SET( LUA_INCLUDE_DIRS ${LUA_INCLUDE_DIR} )
if (WIN32)
@ -100,11 +100,11 @@ IF(LUA_LIBRARY)
)
mark_as_advanced( LUA_DLL_DIR LUA_DLL )
endif()
ELSE(LUA_LIBRARY)
ELSE(LUA_FOUND)
SET( LUA_LIBRARIES )
SET( LUA_INCLUDE_DIRS )
SET( LUA_DLL_DIR )
SET( LUA_DLL )
ENDIF(LUA_LIBRARY)
ENDIF(LUA_FOUND)
MARK_AS_ADVANCED(LUA_INCLUDE_DIRS LUA_LIBRARIES)