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

[cmake] don't use a too new function in lua_source() (broken builds).

parent b4994ce1
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,8 @@ function(lua_source varname filename) ...@@ -43,7 +43,8 @@ function(lua_source varname filename)
set (tmpfile "${CMAKE_CURRENT_BINARY_DIR}/${filename}.new.c") set (tmpfile "${CMAKE_CURRENT_BINARY_DIR}/${filename}.new.c")
set (dstfile "${CMAKE_CURRENT_BINARY_DIR}/${filename}.c") set (dstfile "${CMAKE_CURRENT_BINARY_DIR}/${filename}.c")
get_filename_component(module ${filename} NAME_WE) get_filename_component(module ${filename} NAME_WE)
get_filename_component(dstdir ${dstfile} DIRECTORY) get_filename_component(_name ${dstfile} NAME)
string(REGEX REPLACE "${_name}$" "" dstdir ${dstfile})
if (IS_DIRECTORY ${dstdir}) if (IS_DIRECTORY ${dstdir})
else() else()
file(MAKE_DIRECTORY ${dstdir}) file(MAKE_DIRECTORY ${dstdir})
......
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