forked from spack/spack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cprnc: set install rpath and add v1.0.8 (spack#47505)
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
var/spack/repos/builtin/packages/cprnc/install_rpath.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- a/CMakeLists.txt 2023-12-04 07:01:57.000000000 -0700 | ||
+++ b/CMakeLists.txt 2024-11-08 06:53:55.090900241 -0700 | ||
@@ -21,6 +21,7 @@ | ||
|
||
set(CMAKE_POSITION_INDEPENDENT_CODE ON) | ||
set(CMAKE_MACOSX_RPATH 1) | ||
+SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) | ||
|
||
# Compiler-specific compile options | ||
if ("${CMAKE_Fortran_COMPILER_ID}" STREQUAL "GNU") | ||
@@ -79,6 +80,7 @@ | ||
get_filename_component(netcdf_c_lib_location ${netcdf_c_lib} DIRECTORY) | ||
#message (STATUS "netcdf_c_lib_location == ${netcdf_c_lib_location}") | ||
|
||
+SET(CMAKE_INSTALL_RPATH "${netcdf_fortran_lib_location};${netcdf_c_lib_location}") | ||
list(APPEND CMAKE_BUILD_RPATH ${netcdf_fortran_lib_location} ${netcdf_c_lib_location}) | ||
#message("CMAKE_BUILD_RPATH is ${CMAKE_BUILD_RPATH}") | ||
add_executable (cprnc ${CPRNC_Fortran_SRCS} ${CPRNC_GenF90_SRCS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters