CMakeLists.txt
changeset 7704 b25add2fdfa6
parent 7397 833fc211ca2d
child 7705 15f5d3cd35c6
equal deleted inserted replaced
7703:78d2ac987f41 7704:b25add2fdfa6
   215     message(STATUS "Lua library is present on your system (${LUA_DEFAULT})")
   215     message(STATUS "Lua library is present on your system (${LUA_DEFAULT})")
   216 else()
   216 else()
   217     message(STATUS "Lua library not found, building bundled dependency")
   217     message(STATUS "Lua library not found, building bundled dependency")
   218     add_subdirectory(misc/liblua)
   218     add_subdirectory(misc/liblua)
   219     #linking with liblua.a requires system readline -- this works everywhere, right?
   219     #linking with liblua.a requires system readline -- this works everywhere, right?
   220     if(WIN32)
   220     set(pascal_flags "-k${EXECUTABLE_OUTPUT_PATH}/lib${LUA_LIBRARY}.a" "-k-lreadline" ${pascal_flags})
   221         set(pascal_flags "-k${CMAKE_BINARY_DIR}/bin/liblua.dll.a" "-k-lreadline" ${pascal_flags})
       
   222     else()
       
   223         set(pascal_flags "-k${CMAKE_BINARY_DIR}/bin/liblua.a" "-k-lreadline" ${pascal_flags})
       
   224     endif()
       
   225 endif()
   221 endif()
   226 
   222 
   227 add_subdirectory(hedgewars)
   223 add_subdirectory(hedgewars)
   228 
   224 
   229 
   225