diff options
author | Brad King <brad.king@kitware.com> | 2018-07-03 15:24:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-07-03 16:54:24 (GMT) |
commit | 890be0145def8d9c469fcaf6db1e7e6bc485f6cc (patch) | |
tree | 567175b236ec96cb88a4be70fb53dae7047533d0 | |
parent | f598166124eee89f21be6d518a09cc37d767c5d1 (diff) | |
parent | 91f4adb0284b20c23223bc0243aa96ff8bbc1941 (diff) | |
download | CMake-890be0145def8d9c469fcaf6db1e7e6bc485f6cc.zip CMake-890be0145def8d9c469fcaf6db1e7e6bc485f6cc.tar.gz CMake-890be0145def8d9c469fcaf6db1e7e6bc485f6cc.tar.bz2 |
Merge branch 'FindLua-CMP0012' into release-3.12
Merge-request: !2189
-rw-r--r-- | Modules/FindLua.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/FindLua.cmake b/Modules/FindLua.cmake index 8f35fc7..b57a46e 100644 --- a/Modules/FindLua.cmake +++ b/Modules/FindLua.cmake @@ -36,6 +36,9 @@ # This is because, the lua location is not standardized and may exist in # locations other than lua/ +cmake_policy(PUSH) # Policies apply to functions at definition-time +cmake_policy(SET CMP0012 NEW) # For while(TRUE) + unset(_lua_include_subdirs) unset(_lua_library_names) unset(_lua_append_versions) @@ -236,3 +239,5 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(Lua VERSION_VAR LUA_VERSION_STRING) mark_as_advanced(LUA_INCLUDE_DIR LUA_LIBRARY LUA_MATH_LIBRARY) + +cmake_policy(POP) |