Skip to content

Commit c83f955

Browse files
committed
Create dirs in ragel and re2c commands.
1 parent bbfb54b commit c83f955

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/common/config.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ void Config::load(const yaml &root)
186186
}
187187
else
188188
load_specific();
189+
// add skip option? - skip specific
189190
}
190191
}
191192
projects = all_projects;

src/inserts/functions.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,9 @@ endmacro()
11911191
macro(cppan_ragel f)
11921192
set(i ${SDIR}/${f})
11931193
set(o ${BDIR_PRIVATE}/${f}.cpp)
1194+
get_filename_component(dir ${o} DIRECTORY)
11941195
add_custom_command(OUTPUT ${o}
1196+
COMMAND ${CMAKE_COMMAND} -E make_directory ${dir}
11951197
COMMAND pvt.cppan.demo.ragel ${i} -o ${o}
11961198
DEPENDS ${i}
11971199
)
@@ -1205,7 +1207,9 @@ endmacro()
12051207
macro(cppan_re2c f ext)
12061208
set(i ${SDIR}/${f})
12071209
set(o ${BDIR_PRIVATE}/${f}.${ext})
1210+
get_filename_component(dir ${o} DIRECTORY)
12081211
add_custom_command(OUTPUT ${o}
1212+
COMMAND ${CMAKE_COMMAND} -E make_directory ${dir}
12091213
COMMAND pvt.cppan.demo.re2c.re2c -o ${o} ${i}
12101214
DEPENDS ${i}
12111215
)

0 commit comments

Comments
 (0)