cmake_modules/FindLua.cmake
author nemo
Mon, 22 Mar 2010 11:52:16 +0000
changeset 3043 3acdb4dac6eb
parent 2925 d088b5f813c9
child 3014 2b4116a8bdb0
child 3067 330e60f5dde8
permissions -rw-r--r--
Just tidying up a bit. Comments, moving uMisc to end of frees in case ones above it need logging
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)
d088b5f813c9 CMAKE SMASH!
smxx
parents: 2924
diff changeset
    11
			set(LUA_DEFAULT lua5.1.so)
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!")
d088b5f813c9 CMAKE SMASH!
smxx
parents: 2924
diff changeset
    15
ENDIF(NOT LUA_LIBRARY)