Fix problem building rdma-core.
[vpp.git] / build / external / packages / rdma-core.mk
index 0e8c878..d3363e1 100644 (file)
@@ -28,14 +28,14 @@ RDMA_FILES := include/infiniband/verbs.h \
 
 define  rdma-core_config_cmds
        cd $(rdma-core_build_dir) && \
-         cmake -G Ninja $(rdma-core_src_dir) \
+         $(CMAKE) -G Ninja $(rdma-core_src_dir) \
            -DENABLE_STATIC=1 -DENABLE_RESOLVE_NEIGH=0 -DNO_PYVERBS=1 -DENABLE_VALGRIND=0 \
            -DCMAKE_BUILD_TYPE=RelWithDebInfo \
            -DCMAKE_C_FLAGS=-fPIC > $(rdma-core_config_log)
 endef
 
 define  rdma-core_build_cmds
-       cmake --build $(rdma-core_build_dir) -- libibverbs.a libmlx5.a > $(rdma-core_build_log)
+       $(CMAKE) --build $(rdma-core_build_dir) -- libibverbs.a libmlx5.a > $(rdma-core_build_log)
 endef
 
 define  rdma-core_install_cmds