Oops, forgot this
authorunc0rr
Tue, 19 Jun 2012 00:40:52 +0400
changeset 7264 4c438ad3eddc
parent 7262 33e703cc7a7f
child 7265 3f96073156e1
Oops, forgot this
CMakeLists.txt
--- a/CMakeLists.txt	Mon Jun 18 23:45:21 2012 +0400
+++ b/CMakeLists.txt	Tue Jun 19 00:40:52 2012 +0400
@@ -208,7 +208,11 @@
     message(STATUS "Lua library not found, building bundled dependency")
     add_subdirectory(misc/liblua)
     #linking with liblua.a requires system readline -- this works everywhere, right?
-    set(pascal_flags "-k${CMAKE_BINARY_DIR}/bin/liblua.a" "-k-lreadline" ${pascal_flags})
+    if(WIN32)
+        set(pascal_flags "-k${CMAKE_BINARY_DIR}/bin/liblua.dll.a" "-k-lreadline" ${pascal_flags})
+    else()
+        set(pascal_flags "-k${CMAKE_BINARY_DIR}/bin/liblua.a" "-k-lreadline" ${pascal_flags})
+    endif()
 endif()
 
 add_subdirectory(hedgewars)