]> git.openstreetmap.org Git - nominatim.git/blobdiff - module/CMakeLists.txt
Merge pull request #1582 from mtmail/documentation-direct-link-osm2pgsql
[nominatim.git] / module / CMakeLists.txt
index 5e507a9e8eb2ee6037192b779f1e9afa4506b3a4..318e56501db660f1a1a4568772f89e93f58aa464 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} make -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}"
         )