cmake_modules/FindLua.cmake
changeset 6814 21928ae7c74b
parent 6813 48c3462ddce9
child 7031 d5ea24399a48
equal deleted inserted replaced
6813:48c3462ddce9 6814:21928ae7c74b
    16 				#UNSET(LUA_DEFAULT)
    16 				#UNSET(LUA_DEFAULT)
    17 				MESSAGE(FATAL_ERROR "Couldn't find Lua 5.1 library!")
    17 				MESSAGE(FATAL_ERROR "Couldn't find Lua 5.1 library!")
    18 			ENDIF()
    18 			ENDIF()
    19 			#remove the path (fpc doesn't like it - why?)
    19 			#remove the path (fpc doesn't like it - why?)
    20 			GET_FILENAME_COMPONENT(LUA_DEFAULT ${LUA_DEFAULT} NAME)
    20 			GET_FILENAME_COMPONENT(LUA_DEFAULT ${LUA_DEFAULT} NAME)
    21                 ENDIF(APPLE
    21                 ENDIF(APPLE)
    22 	ENDIF(WIN32)
    22 	ENDIF(WIN32)
    23 ENDIF(ANDROID)
    23 ENDIF(ANDROID)
    24 SET(LUA_LIBRARY ${LUA_DEFAULT} CACHE STRING "Lua library to link to; file name without path only!")
    24 SET(LUA_LIBRARY ${LUA_DEFAULT} CACHE STRING "Lua library to link to; file name without path only!")
    25 #UNSET(LUA_DEFAULT)
    25 #UNSET(LUA_DEFAULT)