mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-16 18:43:18 +08:00
The C source files can now be formatted with pgindent using a new CMake build target. The location of pgindent and dependencies are auto-discovered by CMake or can be overridden on the command line.
15 lines
480 B
CMake
15 lines
480 B
CMake
if (APPLE)
|
|
# We strictly need gobjdump on macs, because objdump is usually
|
|
# llvm's incompatible objdump
|
|
find_program(OBJDUMP NAMES gobjdump PATHS /usr/local/bin /opt/local/bin)
|
|
else ()
|
|
find_program(OBJDUMP NAMES gobjdump objdump)
|
|
endif (APPLE)
|
|
|
|
if (OBJDUMP)
|
|
message(STATUS "Using objdump ${OBJDUMP}")
|
|
configure_file(generate_typedefs.sh.in generate_typedefs.sh @ONLY)
|
|
else ()
|
|
message(STATUS "Install objdump or gobjdump to be able to run pgindent")
|
|
endif (OBJDUMP)
|