Fixed build [#METR-17973].

This commit is contained in:
Alexey Milovidov 2016-02-09 00:34:49 +03:00
parent c55fbd08dc
commit 5bdfe45415
2 changed files with 2 additions and 2 deletions

View File

@ -49,6 +49,6 @@ set_target_properties(re2_st PROPERTIES COMPILE_DEFINITIONS "NO_THREADS;re2=re2_
ADD_CUSTOM_COMMAND(
TARGET re2_st
POST_BUILD
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/create_st_headers.sh
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/create_st_headers.sh ARGS ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Creating headers for re2_st library.")

View File

@ -5,6 +5,6 @@ mkdir -p re2_st
for i in filtered_re2.h re2.h set.h stringpiece.h variadic_function.h;
do
cp re2/$i re2_st/$i
cp $1/re2/$i re2_st/$i
sed -i -r 's/using re2::RE2;//g;s/namespace re2/namespace re2_st/g;s/re2::/re2_st::/g;s/\"re2\//\"re2_st\//g;s/(.*?_H)/\1_ST/g' re2_st/$i;
done