Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7951 for code


Ignore:
Timestamp:
Feb 24, 2011, 3:51:06 AM (14 years ago)
Author:
rgrieder
Message:

Bugfix for FindLua5.1.cmake

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/kicklib/cmake/tools/FindLua5.1.cmake

    r7944 r7951  
    5656# Find include path
    5757FIND_PATH(LUA5.1_INCLUDE_DIR lua.h
    58   PATHS $ENV{LUA_DIR}
     58  PATHS $ENV{LUA5.1_DIR}
    5959  PATH_SUFFIXES include/lua51 include/lua5.1 include/lua include
    6060)
     
    6666  IF(NOT _version_compare EQUAL 0)
    6767    # Wrong version
     68    MESSAGE(SEND_ERROR "Version of Lua header found is not 5.1")
    6869    SET(LUA5.1_INCLUDE_DIR "LUA5.1_INCLUDE_DIR-NOTFOUND" CACHE PATH "" FORCE)
    6970  ENDIF(NOT _version_compare EQUAL 0)
     
    8586
    8687# Handle the REQUIRED argument and set LUA5.1_FOUND
    87 FIND_PACKAGE_HANDLE_ADVANCED_ARGS(Lua5.1 DEFAULT_MSG
    88   LUA5.1_LIBRARY
     88FIND_PACKAGE_HANDLE_STANDARD_ARGS(Lua5.1 DEFAULT_MSG
     89  LUA5.1_LIBRARY_OPTIMIZED
    8990  LUA5.1_INCLUDE_DIR
    9091)
Note: See TracChangeset for help on using the changeset viewer.