From b2441daddaaccef9c930e97244d324698ff6592a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=BCtzel?= Date: Tue, 19 Dec 2023 09:11:00 +0100 Subject: [PATCH] SuiteSparsePolicy.cmake: Don't append to CMAKE_BUILD_RPATH On platforms that support it, the rpath should be set by default for libraries before installation. --- GraphBLAS/cmake_modules/SuiteSparsePolicy.cmake | 8 -------- LAGraph/cmake_modules/SuiteSparsePolicy.cmake | 8 -------- SuiteSparse_config/cmake_modules/SuiteSparsePolicy.cmake | 8 -------- 3 files changed, 24 deletions(-) diff --git a/GraphBLAS/cmake_modules/SuiteSparsePolicy.cmake b/GraphBLAS/cmake_modules/SuiteSparsePolicy.cmake index 74ba6a378..e15f68393 100644 --- a/GraphBLAS/cmake_modules/SuiteSparsePolicy.cmake +++ b/GraphBLAS/cmake_modules/SuiteSparsePolicy.cmake @@ -151,14 +151,6 @@ else ( ) ${CMAKE_SOURCE_DIR}/../lib/cmake ) endif ( ) -# add the ./build folder to the runpath so other SuiteSparse packages can -# find this one without "make install" -list ( FIND CMAKE_BUILD_RPATH ${CMAKE_BINARY_DIR} _idx ) -if ( _idx LESS 0 ) - # not yet included in CMAKE_BUILD_RPATH - list ( APPEND CMAKE_BUILD_RPATH ${CMAKE_BINARY_DIR} ) -endif ( ) - set ( INSIDE_SUITESPARSE OFF ) if ( NOT SUITESPARSE_ROOT_CMAKELISTS ) # determine if this Package is inside the SuiteSparse folder diff --git a/LAGraph/cmake_modules/SuiteSparsePolicy.cmake b/LAGraph/cmake_modules/SuiteSparsePolicy.cmake index 74ba6a378..e15f68393 100644 --- a/LAGraph/cmake_modules/SuiteSparsePolicy.cmake +++ b/LAGraph/cmake_modules/SuiteSparsePolicy.cmake @@ -151,14 +151,6 @@ else ( ) ${CMAKE_SOURCE_DIR}/../lib/cmake ) endif ( ) -# add the ./build folder to the runpath so other SuiteSparse packages can -# find this one without "make install" -list ( FIND CMAKE_BUILD_RPATH ${CMAKE_BINARY_DIR} _idx ) -if ( _idx LESS 0 ) - # not yet included in CMAKE_BUILD_RPATH - list ( APPEND CMAKE_BUILD_RPATH ${CMAKE_BINARY_DIR} ) -endif ( ) - set ( INSIDE_SUITESPARSE OFF ) if ( NOT SUITESPARSE_ROOT_CMAKELISTS ) # determine if this Package is inside the SuiteSparse folder diff --git a/SuiteSparse_config/cmake_modules/SuiteSparsePolicy.cmake b/SuiteSparse_config/cmake_modules/SuiteSparsePolicy.cmake index 74ba6a378..e15f68393 100644 --- a/SuiteSparse_config/cmake_modules/SuiteSparsePolicy.cmake +++ b/SuiteSparse_config/cmake_modules/SuiteSparsePolicy.cmake @@ -151,14 +151,6 @@ else ( ) ${CMAKE_SOURCE_DIR}/../lib/cmake ) endif ( ) -# add the ./build folder to the runpath so other SuiteSparse packages can -# find this one without "make install" -list ( FIND CMAKE_BUILD_RPATH ${CMAKE_BINARY_DIR} _idx ) -if ( _idx LESS 0 ) - # not yet included in CMAKE_BUILD_RPATH - list ( APPEND CMAKE_BUILD_RPATH ${CMAKE_BINARY_DIR} ) -endif ( ) - set ( INSIDE_SUITESPARSE OFF ) if ( NOT SUITESPARSE_ROOT_CMAKELISTS ) # determine if this Package is inside the SuiteSparse folder