aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Quantin <pascal@wireshark.org>2020-03-19 09:01:31 +0100
committerAnders Broman <a.broman58@gmail.com>2020-03-19 08:50:29 +0000
commit2ba42a047e767dd7e9fcd1f7256c2ab301b2c76d (patch)
tree689f715821129302857a33664a4fcae9c6a9e8c6
parente59c89b58f36621c690c8171cc0e6b93beaae422 (diff)
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>
-rw-r--r--cmake/modules/FindLUA.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/modules/FindLUA.cmake b/cmake/modules/FindLUA.cmake
index 2e5e8d476b..0336ca6a10 100644
--- a/cmake/modules/FindLUA.cmake
+++ b/cmake/modules/FindLUA.cmake
@@ -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)