Skip to content

Commit 1b21982

Browse files
committed
Update gpdb.cmake
1 parent 0fdd686 commit 1b21982

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

gpcontrib/diskquota/cmake/Gpdb.cmake

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,15 @@ exec_program(${PG_CONFIG} ARGS --libdir OUTPUT_VARIABLE PG_LIB_DIR)
4040
exec_program(${PG_CONFIG} ARGS --pgxs OUTPUT_VARIABLE PG_PGXS)
4141
get_filename_component(PG_HOME "${PG_BIN_DIR}/.." ABSOLUTE)
4242

43-
# If PG_SRC_DIR is provided (in-tree build), use source tree include paths
44-
# This is necessary because pg_config --includedir returns the install path,
45-
# which doesn't exist yet during in-tree builds
43+
# If PG_SRC_DIR is provided (in-tree build), use source tree paths
44+
# This is necessary because pg_config returns install paths,
45+
# which don't exist yet during in-tree builds
4646
if(PG_SRC_DIR)
4747
set(PG_INCLUDE_DIR "${PG_SRC_DIR}/src/include")
4848
set(PG_INCLUDE_DIR_SERVER "${PG_SRC_DIR}/src/include")
49-
# libpq headers are in src/interfaces/libpq in source tree
49+
# libpq headers and library are in src/interfaces/libpq in source tree
5050
set(PG_INCLUDE_DIR_LIBPQ "${PG_SRC_DIR}/src/interfaces/libpq")
51+
set(PG_LIB_DIR "${PG_SRC_DIR}/src/interfaces/libpq")
5152
message(STATUS "In-tree build: using source include path '${PG_INCLUDE_DIR}'")
5253
else()
5354
# Standalone build: try to derive PG_SRC_DIR from Makefile.global (optional)

0 commit comments

Comments
 (0)