diff mbox

[rdma-core] Fix typo in rdma_create_symlink

Message ID 20180312195123.GA4227@ziepe.ca (mailing list archive)
State Accepted
Delegated to: Leon Romanovsky
Headers show

Commit Message

Jason Gunthorpe March 12, 2018, 7:51 p.m. UTC
The only reason this worked is because all cases have DDIR == BUILD_LIB

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
---
 buildlib/rdma_functions.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Doug Ledford March 14, 2018, 7:41 p.m. UTC | #1
On Mon, 2018-03-12 at 13:51 -0600, Jason Gunthorpe wrote:
> The only reason this worked is because all cases have DDIR == BUILD_LIB
> 
> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>

Thanks, applied.
diff mbox

Patch

diff --git a/buildlib/rdma_functions.cmake b/buildlib/rdma_functions.cmake
index 53a978e896acfa..292cacb6c125e6 100644
--- a/buildlib/rdma_functions.cmake
+++ b/buildlib/rdma_functions.cmake
@@ -28,7 +28,7 @@  function(rdma_create_symlink LINK_CONTENT DEST)
 
   IF(NOT EXISTS "${DDIR}/")
     execute_process(COMMAND "${CMAKE_COMMAND}" "-E" "make_directory"
-      "${BUILD_LIB}" RESULT_VARIABLE retcode)
+      "${DDIR}" RESULT_VARIABLE retcode)
     if(NOT "${retcode}" STREQUAL "0")
       message(FATAL_ERROR "Failed to create directory ${DDIR}")
     endif()