From cd9dae11af996816a91681f4ca8fef094058b7ea Mon Sep 17 00:00:00 2001 From: Kyle Gerheiser <3209794+kgerheiser@users.noreply.github.com> Date: Thu, 7 Jul 2022 10:26:23 -0400 Subject: [PATCH] Add BUILD_SHARED_LIBS option Fix #1927 --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fdf6e68f01..59ddeff65d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,6 +92,7 @@ option (PIO_USE_MPIIO "Enable support for MPI-IO auto detect" ON) option (PIO_USE_MPISERIAL "Enable mpi-serial support (instead of MPI)" OFF) option (PIO_USE_PNETCDF_VARD "Use pnetcdf put_vard " OFF) option (WITH_PNETCDF "Require the use of PnetCDF" ON) +option (BUILD_SHARED_LIBS "Build shared libraries" ON) if(APPLE) # The linker on macOS does not include `common symbols` by default