Skip to content
Snippets Groups Projects
Commit b14741fa authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Fix broken out-of-source build.

parent 4426874d
No related branches found
No related tags found
No related merge requests found
......@@ -123,7 +123,8 @@ set (PACKAGE_VERSION "")
if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
execute_process (COMMAND ${GIT} describe HEAD
OUTPUT_VARIABLE PACKAGE_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE)
OUTPUT_STRIP_TRAILING_WHITESPACE
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
if (PACKAGE_VERSION STREQUAL "")
message (FATAL_ERROR "Failed to retrive git version.")
endif()
......
......@@ -18,6 +18,7 @@ function(lua_source filename)
PARENT_SCOPE)
endfunction()
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/src/box/lua)
lua_source(lua/box.lua)
lua_source(lua/box_net.lua)
lua_source(lua/misc.lua)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment