mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 07:09:06 +08:00
e819d33625
Co-authored-by: Cheney-Wang <v-xincwa@microsoft.com>
16 lines
998 B
Diff
16 lines
998 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index cce875a..0b04be7 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -530,8 +530,8 @@ endif()
|
|
if (GPERF 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 ${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 clang-format -i ${CMAKE_CURRENT_SOURCE_DIR}/poppler/${input}.pregenerated.c || true
|
|
DEPENDS poppler/${input}.gperf
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|