Skip to content

Commit

Permalink
Fix installation setup for lib64
Browse files Browse the repository at this point in the history
  • Loading branch information
hazedine committed Dec 14, 2012
1 parent cf609fc commit 5929924
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmake-modules/BuildHDF5.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ ExternalProject_Add(HDF5
INSTALL_DIR "${CMAKE_BINARY_DIR}/external"
BUILD_COMMAND make
INSTALL_COMMAND make DESTDIR=${CMAKE_BINARY_DIR}/external install
CONFIGURE_COMMAND ./configure --prefix=${install_prefix} --with-zlib=${zlib_include_dir},${zlib_library_dir} --with-pic --disable-shared --disable-cxx --disable-f77 --disable-f90 --disable-examples --disable-hl --disable-docs
CONFIGURE_COMMAND ./configure --prefix=${install_prefix} --with-zlib=${zlib_include_dir},${zlib_library_dir} --with-pic --disable-shared --disable-cxx --disable-f77 --disable-f90 --disable-examples --disable-hl --disable-docs --libdir=${install_prefix}/lib${LIB_SUFFIX}
# INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR}/external
)

SET(HDF5_INCLUDE_DIR ${staging_prefix}/${install_prefix}/include )
SET(HDF5_LIBRARY ${staging_prefix}/${install_prefix}/lib/libhdf5.a )
SET(HDF5_LIBRARY ${staging_prefix}/${install_prefix}/lib${LIB_SUFFIX}/libhdf5.a )
SET(HDF5_FOUND ON)

endmacro(build_hdf5)
4 changes: 2 additions & 2 deletions cmake-modules/BuildNETCDF.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ ExternalProject_Add(NETCDF
INSTALL_DIR "${staging_prefix}"
BUILD_COMMAND make
INSTALL_COMMAND make DESTDIR=${staging_prefix} install
CONFIGURE_COMMAND ./configure --prefix=${install_prefix} --with-pic --disable-doxygen --disable-hdf4 --disable-netcdf-4 --disable-shared --disable-dap
CONFIGURE_COMMAND ./configure --prefix=${install_prefix} --with-pic --disable-doxygen --disable-hdf4 --disable-netcdf-4 --disable-shared --disable-dap --libdir=${install_prefix}/lib${LIB_SUFFIX}
# INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR}/external
)

SET(NETCDF_LIBRARY ${staging_prefix}/${install_prefix}/lib/libnetcdf.a )
SET(NETCDF_LIBRARY ${staging_prefix}/${install_prefix}/lib${LIB_SUFFIX}/libnetcdf.a )
SET(NETCDF_INCLUDE_DIR ${staging_prefix}/${install_prefix}/include )
SET(NETCDF_FOUND ON)

Expand Down

0 comments on commit 5929924

Please sign in to comment.