From e86516bbaf523ecf2ba714d85f61ff4e5ae1b0fa Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Mon, 13 Feb 2017 21:02:49 +0100 Subject: [PATCH] use properly cascading make for external make file If make is called directly then the -j option is not properly propagated. Instead make gives a warning 'No jobserver avilable'. --- module/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/CMakeLists.txt b/module/CMakeLists.txt index f4fabe42..318e5650 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} ${CMAKE_MAKE_PROGRAM} -f ${CMAKE_CURRENT_SOURCE_DIR}/Makefile + COMMAND PGXS=${PGXS} PG_CONFIG=${PG_CONFIG} MODSRCDIR=${CMAKE_CURRENT_SOURCE_DIR} $(MAKE) -f ${CMAKE_CURRENT_SOURCE_DIR}/Makefile COMMENT "Running external makefile ${PGXS}" )