misc/liblua/CMakeLists.txt
changeset 3069 ad66452d6e8f
parent 2929 dd4efe601bc6
child 3244 654795439cf8
--- 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})