summaryrefslogtreecommitdiffstats
path: root/Modules/FindLua50.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-01-16 02:20:11 (GMT)
committerBrad King <brad.king@kitware.com>2008-01-16 02:20:11 (GMT)
commit52718dbbf2539335e8a70b80497ad99b615cbe98 (patch)
tree423c999dd7c84e2ad452a360acc91b6f881aa664 /Modules/FindLua50.cmake
parent80c2be45e0b1701406e3739bb8a0a8fcad949f69 (diff)
downloadCMake-52718dbbf2539335e8a70b80497ad99b615cbe98.zip
CMake-52718dbbf2539335e8a70b80497ad99b615cbe98.tar.gz
CMake-52718dbbf2539335e8a70b80497ad99b615cbe98.tar.bz2
BUG: Remove references to CMAKE_PREFIX_PATH variable. It should not be referenced directly by FIND_* command calls. The commands search it automatically.
Diffstat (limited to 'Modules/FindLua50.cmake')
-rw-r--r--Modules/FindLua50.cmake20
1 files changed, 3 insertions, 17 deletions
diff --git a/Modules/FindLua50.cmake b/Modules/FindLua50.cmake
index 7058372..0b03530 100644
--- a/Modules/FindLua50.cmake
+++ b/Modules/FindLua50.cmake
@@ -18,11 +18,7 @@ FIND_PATH(LUA_INCLUDE_DIR lua.h
NO_DEFAULT_PATH
PATH_SUFFIXES include/lua50 include/lua5.0 include/lua5 include/lua include
)
-FIND_PATH(LUA_INCLUDE_DIR lua.h
- PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
- NO_DEFAULT_PATH
- PATH_SUFFIXES include/lua50 include/lua5.0 include/lua5 include/lua include
-)
+
FIND_PATH(LUA_INCLUDE_DIR lua.h
PATHS
~/Library/Frameworks
@@ -43,12 +39,7 @@ FIND_LIBRARY(LUA_LIBRARY_lua
NO_DEFAULT_PATH
PATH_SUFFIXES lib64 lib
)
-FIND_LIBRARY(LUA_LIBRARY_lua
- NAMES lua50 lua5.0 lua5 lua
- PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
- NO_DEFAULT_PATH
- PATH_SUFFIXES lib64 lib
-)
+
FIND_LIBRARY(LUA_LIBRARY_lua
NAMES lua50 lua5.0 lua5 lua
PATHS
@@ -76,12 +67,7 @@ ELSE(${LUA_LIBRARY_lua} MATCHES "framework")
NO_DEFAULT_PATH
PATH_SUFFIXES lib64 lib
)
- FIND_LIBRARY(LUA_LIBRARY_lualib
- NAMES lualib50 lualib5.0 lualib5 lualib
- PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this.
- NO_DEFAULT_PATH
- PATH_SUFFIXES lib64 lib
- )
+
FIND_LIBRARY(LUA_LIBRARY_lualib
NAMES lualib50 lualib5.0 lualib5 lualib
PATHS