Skip to content

Commit

Permalink
Merge branch 'robertu94-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheng Di committed Feb 20, 2020
2 parents 214c8d2 + a314ef2 commit 0d33ccd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ option(BUILD_PASTRI "build the pastri code" OFF)
option(BUILD_TIMECMPR "build the time based compression code" OFF)
option(BUILD_RANDOMACCESS "build the random access code" OFF)
option(BUILD_DOCKER_CONTAINERS "build docker containers for testing" OFF)
option(BUILD_FORTRAN "build the fortran interface" OFF)
if(BUILD_DOCKER_CONTAINERS)

foreach(CONTAINER Centos Fedora Ubuntu Travis CentosPackaged)
Expand Down
2 changes: 1 addition & 1 deletion sz.pc.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
includedir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@
includedir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@/sz
libdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@

Name: SZ
Expand Down
7 changes: 7 additions & 0 deletions sz/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ endif()
if(BUILD_RANDOMACCESS)
target_compile_definitions(SZ PUBLIC HAVE_RANDOMACCESS)
endif()
if(BUILD_FORTRAN)
enable_language(Fortran)
target_sources(SZ PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/src/rw_interface.F90
${CMAKE_CURRENT_SOURCE_DIR}/src/sz_interface.F90
)
endif()

install (TARGETS SZ ${thirdparty_export} EXPORT SZConfig
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
Expand Down

0 comments on commit 0d33ccd

Please sign in to comment.