cmake_modules/FindLua.cmake
author mbait
Wed, 17 Mar 2010 23:01:53 +0000
branchlua_linux_lib_fix
changeset 3014 2b4116a8bdb0
parent 2925 d088b5f813c9
permissions -rw-r--r--
default lua variable fix
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2924
908851e59958 Engine:
smxx
parents:
diff changeset
     1
# Find the Lua library
908851e59958 Engine:
smxx
parents:
diff changeset
     2
#
908851e59958 Engine:
smxx
parents:
diff changeset
     3
2925
d088b5f813c9 CMAKE SMASH!
smxx
parents: 2924
diff changeset
     4
IF(NOT LUA_LIBRARY)
d088b5f813c9 CMAKE SMASH!
smxx
parents: 2924
diff changeset
     5
	IF(WIN32)
d088b5f813c9 CMAKE SMASH!
smxx
parents: 2924
diff changeset
     6
		set(LUA_DEFAULT lua.dll)
d088b5f813c9 CMAKE SMASH!
smxx
parents: 2924
diff changeset
     7
	ELSE(WIN32)
d088b5f813c9 CMAKE SMASH!
smxx
parents: 2924
diff changeset
     8
		IF(APPLE)
d088b5f813c9 CMAKE SMASH!
smxx
parents: 2924
diff changeset
     9
			set(LUA_DEFAULT lua)
d088b5f813c9 CMAKE SMASH!
smxx
parents: 2924
diff changeset
    10
		ELSE(APPLE)
3014
2b4116a8bdb0 default lua variable fix
mbait
parents: 2925
diff changeset
    11
			set(LUA_DEFAULT liblua.so)
2925
d088b5f813c9 CMAKE SMASH!
smxx
parents: 2924
diff changeset
    12
		ENDIF(APPLE)
d088b5f813c9 CMAKE SMASH!
smxx
parents: 2924
diff changeset
    13
	ENDIF(WIN32)
d088b5f813c9 CMAKE SMASH!
smxx
parents: 2924
diff changeset
    14
	SET(LUA_LIBRARY ${LUA_DEFAULT} CACHE STRING "Lua library to link to; file name without path only!")
3014
2b4116a8bdb0 default lua variable fix
mbait
parents: 2925
diff changeset
    15
ENDIF(NOT LUA_LIBRARY)