CMake:
authorsmxx
Fri, 26 Mar 2010 00:39:49 +0000
changeset 3069 ad66452d6e8f
parent 3068 04ea12322a08
child 3070 f5ca5ab348c7
CMake: * Don't build Lua on systems other than Win32/Apple
misc/liblua/CMakeLists.txt
--- a/misc/liblua/CMakeLists.txt	Fri Mar 26 00:39:00 2010 +0000
+++ b/misc/liblua/CMakeLists.txt	Fri Mar 26 00:39:49 2010 +0000
@@ -6,15 +6,15 @@
 	
 	set(build_type STATIC)
 	add_definitions(-DLUA_USE_LINUX)
+	add_library (lua ${build_type} ${lua_src})
 ENDIF(APPLE)
 
 IF(WIN32)
 	set(build_type SHARED)
 	add_definitions(-DLUA_BUILD_AS_DLL)
+	add_library (lua ${build_type} ${lua_src})
 ENDIF(WIN32)
 
-add_library (lua ${build_type} ${lua_src})
-
 if(WIN32)
 	SET_TARGET_PROPERTIES(lua PROPERTIES PREFIX "")
 	install(TARGETS lua DESTINATION ${target_dir})