]> git.openstreetmap.org Git - nominatim.git/commitdiff
Use CMAKE_MAKE_PROGRAM instead of hardcoded make
authorMelvyn Sopacua <m.r.sopacua@gmail.com>
Mon, 13 Feb 2017 13:33:14 +0000 (14:33 +0100)
committerMelvyn Sopacua <m.r.sopacua@gmail.com>
Mon, 13 Feb 2017 13:33:14 +0000 (14:33 +0100)
FreeBSD uses `gmake` instead of `make` if GNU make is required to build
a port.

module/CMakeLists.txt

index 4dfc477cd8684a30a81791f99f8541c9ed0863b3..f4fabe42922ff8e376fdaeaa88ce9815e876dc64 100644 (file)
@@ -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}"
         )