--- a/CMakeLists.txt Wed Jun 12 12:18:03 2013 +0200
+++ b/CMakeLists.txt Wed Jun 12 16:43:24 2013 +0200
@@ -153,8 +153,8 @@
endif()
else()
message(STATUS "LUA will be provided by the bundled sources")
+ set(lua_output_name "hwlua")
add_subdirectory(misc/liblua)
- set(lua_output_name "hwlua")
list(APPEND pascal_flags "-XLAlua=${lua_output_name}" "-dLUA_INTERNAL")
endif()
--- a/misc/liblua/CMakeLists.txt Wed Jun 12 12:18:03 2013 +0200
+++ b/misc/liblua/CMakeLists.txt Wed Jun 12 16:43:24 2013 +0200
@@ -14,7 +14,7 @@
set_target_properties(lua PROPERTIES
VERSION "5.1.4"
SOVERSION 1
- OUTPUT_NAME ${lua_output_name}))
+ OUTPUT_NAME ${lua_output_name})
install(TARGETS lua RUNTIME DESTINATION ${target_binary_install_dir}
LIBRARY DESTINATION ${target_library_install_dir}
ARCHIVE DESTINATION ${target_library_install_dir})