summaryrefslogtreecommitdiff
blob: 3cde66622c1dba9375c3ba88ca9e187c69d8e3bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
 exodus/CMakeLists.txt         |  6 +++---
 exodus/cbind/CMakeLists.txt   |  6 +++---
 exodus/forbind/CMakeLists.txt | 13 +++++++------
 3 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/exodus/CMakeLists.txt b/exodus/CMakeLists.txt
index 935da5a..33c68ca 100644
--- a/exodus/CMakeLists.txt
+++ b/exodus/CMakeLists.txt
@@ -21,7 +21,7 @@ find_path( NETCDF_INCLUDE_DIR netcdf.h
 find_library( NETCDF_LIBRARY
    NAMES netcdf
    PATHS "$ENV{ACCESS}/lib"
-         "$ENV{NETCDF_DIR}/lib"
+         "$ENV{NETCDF_DIR}/${CMAKE_INSTALL_LIBDIR}"
 	 "$ENV{NETCDF_DIR}/libsrc/.libs"
 )
 
@@ -35,14 +35,14 @@ find_program (NETCDF_NCDUMP ncdump
 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
   )
 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
   )
diff --git a/exodus/cbind/CMakeLists.txt b/exodus/cbind/CMakeLists.txt
index 9aa54e9..a19a969 100644
--- a/exodus/cbind/CMakeLists.txt
+++ b/exodus/cbind/CMakeLists.txt
@@ -259,9 +259,9 @@ ENDIF(EXODUS_LIBRARY_PROPERTIES)
 
 IF(NOT EXODUS_INSTALL_NO_LIBRARIES)
   INSTALL(TARGETS exoIIv2c
-    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 ${cbind_HEADERS} DESTINATION include COMPONENT Development)
 ENDIF(NOT EXODUS_INSTALL_NO_LIBRARIES)
 
diff --git a/exodus/forbind/CMakeLists.txt b/exodus/forbind/CMakeLists.txt
index 4a5e7c7..dad37ae 100644
--- a/exodus/forbind/CMakeLists.txt
+++ b/exodus/forbind/CMakeLists.txt
@@ -14,7 +14,7 @@ find_path( NETCDF_INCLUDE_DIR netcdf.h
 find_library( NETCDF_LIBRARY
    NAMES netcdf
    PATHS "$ENV{ACCESS}/lib"
-         "$ENV{NETCDF_DIR}/lib"
+         "$ENV{NETCDF_DIR}/${CMAKE_INSTALL_LIBDIR}"
 	 "$ENV{NETCDF_DIR}/libsrc/.libs"
 )
 
@@ -28,20 +28,21 @@ find_program (NETCDF_NCDUMP ncdump
 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
   )
 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
   )
 
 INCLUDE_DIRECTORIES(
   "${CMAKE_CURRENT_SOURCE_DIR}/include"
+  "${CMAKE_CURRENT_SOURCE_DIR}/../cbind/include"
   "${CMAKE_CURRENT_BINARY_DIR}/include"
   "${NETCDF_INCLUDE_DIR}"
 )
@@ -60,9 +61,9 @@ ENDIF(EXODUS_LIBRARY_PROPERTIES)
 
 IF(NOT EXODUS_INSTALL_NO_LIBRARIES)
   INSTALL(TARGETS exoIIv2for
-    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 ${forbind_HEADERS} DESTINATION include COMPONENT Development)
 ENDIF(NOT EXODUS_INSTALL_NO_LIBRARIES)