From e31cd9717c4aa8875caf995f5185143cd507d3e4 Mon Sep 17 00:00:00 2001 From: Melvyn Sopacua Date: Mon, 13 Feb 2017 14:33:14 +0100 Subject: [PATCH] Use CMAKE_MAKE_PROGRAM instead of hardcoded make FreeBSD uses `gmake` instead of `make` if GNU make is required to build a port. --- module/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/CMakeLists.txt b/module/CMakeLists.txt index 4dfc477c..f4fabe42 100644 --- a/module/CMakeLists.txt +++ b/module/CMakeLists.txt @@ -1,6 +1,6 @@ # just use the pgxs makefile ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/dummy - COMMAND PGXS=${PGXS} PG_CONFIG=${PG_CONFIG} MODSRCDIR=${CMAKE_CURRENT_SOURCE_DIR} make -f ${CMAKE_CURRENT_SOURCE_DIR}/Makefile + COMMAND PGXS=${PGXS} PG_CONFIG=${PG_CONFIG} MODSRCDIR=${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_MAKE_PROGRAM} -f ${CMAKE_CURRENT_SOURCE_DIR}/Makefile COMMENT "Running external makefile ${PGXS}" ) -- 2.39.5