mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 08:20:18 -06:00
FindLua: Remove manually specified additional paths
The additional paths specified are already accounted for in the appropriate Platform files.
This commit is contained in:
@@ -42,13 +42,6 @@ cmake_policy(SET CMP0012 NEW) # For while(TRUE)
|
||||
unset(_lua_include_subdirs)
|
||||
unset(_lua_library_names)
|
||||
unset(_lua_append_versions)
|
||||
set(_lua_additional_paths
|
||||
~/Library/Frameworks
|
||||
/Library/Frameworks
|
||||
/sw # Fink
|
||||
/opt/local # DarwinPorts
|
||||
/opt/csw # Blastwave
|
||||
/opt)
|
||||
|
||||
# this is a function only to have all the variables inside go away automatically
|
||||
function(_lua_get_versions)
|
||||
@@ -161,7 +154,6 @@ function(_lua_find_header)
|
||||
HINTS
|
||||
ENV LUA_DIR
|
||||
PATH_SUFFIXES ${subdir}
|
||||
PATHS ${_lua_additional_paths}
|
||||
)
|
||||
if (LUA_INCLUDE_DIR)
|
||||
break()
|
||||
@@ -209,7 +201,6 @@ find_library(LUA_LIBRARY
|
||||
HINTS
|
||||
ENV LUA_DIR
|
||||
PATH_SUFFIXES lib
|
||||
PATHS ${_lua_additional_paths}
|
||||
)
|
||||
unset(_lua_library_names)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user