Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Vincent Lefevre
poppler
Commits
8a14a2dd
Commit
8a14a2dd
authored
Jun 16, 2022
by
Albert Astals Cid
Browse files
Make the pregenerated contents more stable
by running sed to remove the path from gperf command line
parent
727b334b
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
8a14a2dd
...
...
@@ -350,6 +350,7 @@ configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
configure_file
(
poppler/poppler-config.h.cmake
${
CMAKE_CURRENT_BINARY_DIR
}
/poppler/poppler-config.h
)
find_program
(
GPERF gperf
)
find_program
(
SED sed
)
set
(
poppler_SRCS
goo/GooString.cc
...
...
@@ -536,11 +537,12 @@ if(Boost_FOUND)
set
(
poppler_LIBS
${
poppler_LIBS
}
Boost::boost
)
endif
()
if
(
GPERF AND RUN_GPERF_IF_PRESENT
)
if
(
GPERF AND
SED AND
RUN_GPERF_IF_PRESENT
)
macro
(
ADD_GPERF_FILE input
)
add_custom_command
(
OUTPUT poppler/
${
input
}
.c
COMMAND
${
GPERF
}
poppler/
${
input
}
.gperf >
${
CMAKE_CURRENT_BINARY_DIR
}
/poppler/
${
input
}
.c
COMMAND
${
GPERF
}
poppler/
${
input
}
.gperf >
${
CMAKE_CURRENT_SOURCE_DIR
}
/poppler/
${
input
}
.pregenerated.c
COMMAND
${
SED
}
-i
"s#
${
GPERF
}
#gperf#"
${
CMAKE_CURRENT_SOURCE_DIR
}
/poppler/
${
input
}
.pregenerated.c
COMMAND clang-format -i
${
CMAKE_CURRENT_SOURCE_DIR
}
/poppler/
${
input
}
.pregenerated.c || true
DEPENDS poppler/
${
input
}
.gperf
WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment