Changeset 7951 for code/branches/kicklib/cmake/tools
- Timestamp:
- Feb 24, 2011, 3:51:06 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib/cmake/tools/FindLua5.1.cmake
r7944 r7951 56 56 # Find include path 57 57 FIND_PATH(LUA5.1_INCLUDE_DIR lua.h 58 PATHS $ENV{LUA _DIR}58 PATHS $ENV{LUA5.1_DIR} 59 59 PATH_SUFFIXES include/lua51 include/lua5.1 include/lua include 60 60 ) … … 66 66 IF(NOT _version_compare EQUAL 0) 67 67 # Wrong version 68 MESSAGE(SEND_ERROR "Version of Lua header found is not 5.1") 68 69 SET(LUA5.1_INCLUDE_DIR "LUA5.1_INCLUDE_DIR-NOTFOUND" CACHE PATH "" FORCE) 69 70 ENDIF(NOT _version_compare EQUAL 0) … … 85 86 86 87 # Handle the REQUIRED argument and set LUA5.1_FOUND 87 FIND_PACKAGE_HANDLE_ ADVANCED_ARGS(Lua5.1 DEFAULT_MSG88 LUA5.1_LIBRARY 88 FIND_PACKAGE_HANDLE_STANDARD_ARGS(Lua5.1 DEFAULT_MSG 89 LUA5.1_LIBRARY_OPTIMIZED 89 90 LUA5.1_INCLUDE_DIR 90 91 )
Note: See TracChangeset
for help on using the changeset viewer.