summaryrefslogtreecommitdiffstats
path: root/Modules/FindLua.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2019-12-19 16:55:13 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2020-01-14 22:45:23 (GMT)
commit7cc02a0c2933ad0bd0ac4c8da45a91ca20aeeeae (patch)
treebbaf04d0c8fe1ffc53aee538c0d5290d52a6a3e0 /Modules/FindLua.cmake
parent85cd26b8a65ea9ff91a0c2e42858a653198e7c23 (diff)
downloadCMake-7cc02a0c2933ad0bd0ac4c8da45a91ca20aeeeae.zip
CMake-7cc02a0c2933ad0bd0ac4c8da45a91ca20aeeeae.tar.gz
CMake-7cc02a0c2933ad0bd0ac4c8da45a91ca20aeeeae.tar.bz2
FindLua: only mark LUA_MATH_LIBRARY as advanced if required
Diffstat (limited to 'Modules/FindLua.cmake')
-rw-r--r--Modules/FindLua.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/FindLua.cmake b/Modules/FindLua.cmake
index caf9d69..0b0c970 100644
--- a/Modules/FindLua.cmake
+++ b/Modules/FindLua.cmake
@@ -211,6 +211,7 @@ if (LUA_LIBRARY)
# include the math library for Unix
if (UNIX AND NOT APPLE AND NOT BEOS)
find_library(LUA_MATH_LIBRARY m)
+ mark_as_advanced(LUA_MATH_LIBRARY)
set(LUA_LIBRARIES "${LUA_LIBRARY};${LUA_MATH_LIBRARY}")
# include dl library for statically-linked Lua library
@@ -232,6 +233,6 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(Lua
REQUIRED_VARS LUA_LIBRARIES LUA_INCLUDE_DIR
VERSION_VAR LUA_VERSION_STRING)
-mark_as_advanced(LUA_INCLUDE_DIR LUA_LIBRARY LUA_MATH_LIBRARY)
+mark_as_advanced(LUA_INCLUDE_DIR LUA_LIBRARY)
cmake_policy(POP)