You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-libs/nemesis/files/nemesis-6.09-multilib.patch

54 lines
1.6 KiB

nemesis/CMakeLists.txt | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/nemesis/CMakeLists.txt b/nemesis/CMakeLists.txt
index 64aff5d..bed5ede 100644
--- a/nemesis/CMakeLists.txt
+++ b/nemesis/CMakeLists.txt
@@ -19,7 +19,7 @@
find_library( NETCDF_LIBRARY netcdf
$ENV{ACCESS}/lib/shared
$ENV{ACCESS}/lib
- $ENV{NETCDF_DIR}/lib
+ $ENV{NETCDF_DIR}/${CMAKE_INSTALL_LIBDIR}
$ENV{NETCDF_DIR}/libsrc/.libs
)
@@ -33,13 +33,14 @@
../exodusii/cbind/
$ENV{ACCESS}/lib/shared
$ENV{ACCESS}/lib
+ $ENV{EXODUS_DIR}/${CMAKE_INSTALL_LIBDIR}
)
# Hack for HDF5
find_library( HDF5_LIBRARY hdf5
$ENV{ACCESS}/lib/shared
$ENV{ACCESS}/lib
- $ENV{NETCDF_DIR}/lib
+ $ENV{NETCDF_DIR}/${CMAKE_INSTALL_LIBDIR}
$ENV{NETCDF_DIR}/libsrc/.libs
/usr/local/hdf5/lib
)
@@ -47,7 +48,7 @@
find_library( HDF5HL_LIBRARY hdf5_hl
$ENV{ACCESS}/lib/shared
$ENV{ACCESS}/lib
- $ENV{NETCDF_DIR}/lib
+ $ENV{NETCDF_DIR}/${CMAKE_INSTALL_LIBDIR}
$ENV{NETCDF_DIR}/libsrc/.libs
/usr/local/hdf5/lib
)
@@ -80,8 +81,8 @@
TARGET_LINK_LIBRARIES( ne_test nemesis ${EXODUS_LIBRARY} ${NETCDF_LIBRARY} ${HDF5HL_LIBRARY} ${HDF5_LIBRARY} ${Z_LIBRARY} ${MATH_LIBRARY})
INSTALL(TARGETS nemesis
- RUNTIME DESTINATION lib COMPONENT Runtime
- LIBRARY DESTINATION lib COMPONENT Runtime
- ARCHIVE DESTINATION lib COMPONENT Development)
+ RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Runtime
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Runtime
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Development)
INSTALL(FILES ${HEADERS} DESTINATION include COMPONENT Development)