diff --git a/TPL/matio/runcmake.sh b/TPL/matio/runcmake.sh index bf2be90d57..95e59d2ad9 100755 --- a/TPL/matio/runcmake.sh +++ b/TPL/matio/runcmake.sh @@ -43,6 +43,7 @@ rm -f config.cache cmake .. -DCMAKE_C_COMPILER:FILEPATH=${CC} \ -DBUILD_SHARED_LIBS:BOOL=${SHARED} \ + -DMATIO_SHARED:BOOL=${SHARED} \ -DMATIO_DEFAULT_FILE_VERSION=7.3 \ -DMATIO_MAT73:BOOL=ON \ -DCMAKE_INSTALL_PREFIX=${INSTALL_PATH} \ diff --git a/install-tpl.sh b/install-tpl.sh index d4601be6a2..e2f531264a 100755 --- a/install-tpl.sh +++ b/install-tpl.sh @@ -900,7 +900,7 @@ then if [ "$DOWNLOAD" == "YES" ] then echo "${txtgrn}+++ Downloading...${txtrst}" - rm -rf gtest + rm -rf googletest git clone https://github.com/google/googletest.git fi diff --git a/packages/seacas/libraries/ioss/src/unit_tests/UnitTestIotmTextMeshFixture.h b/packages/seacas/libraries/ioss/src/unit_tests/UnitTestIotmTextMeshFixture.h index 09421d58c5..a7b62a9658 100644 --- a/packages/seacas/libraries/ioss/src/unit_tests/UnitTestIotmTextMeshFixture.h +++ b/packages/seacas/libraries/ioss/src/unit_tests/UnitTestIotmTextMeshFixture.h @@ -30,7 +30,9 @@ #include #include +#ifdef SEACAS_HAVE_MPI #include +#endif #include #include diff --git a/packages/seacas/libraries/ioss/src/unit_tests/UnitTestTextMesh.C b/packages/seacas/libraries/ioss/src/unit_tests/UnitTestTextMesh.C index c17c8d3873..e4fcb6a8b2 100644 --- a/packages/seacas/libraries/ioss/src/unit_tests/UnitTestTextMesh.C +++ b/packages/seacas/libraries/ioss/src/unit_tests/UnitTestTextMesh.C @@ -7,7 +7,9 @@ #include #include +#ifdef SEACAS_HAVE_MPI #include "mpi.h" +#endif #include "gtest/gtest.h" #include "UnitTestIotmTextMeshFixture.h" diff --git a/packages/seacas/libraries/ioss/src/unit_tests/unitMain.C b/packages/seacas/libraries/ioss/src/unit_tests/unitMain.C index fecf003ad2..a7320ce6fe 100644 --- a/packages/seacas/libraries/ioss/src/unit_tests/unitMain.C +++ b/packages/seacas/libraries/ioss/src/unit_tests/unitMain.C @@ -5,16 +5,22 @@ // See packages/seacas/LICENSE for details #include +#ifdef SEACAS_HAVE_MPI #include +#endif int main(int argc, char **argv) { +#ifdef SEACAS_HAVE_MPI MPI_Init(&argc, &argv); +#endif testing::InitGoogleTest(&argc, argv); int errorCode = RUN_ALL_TESTS(); +#ifdef SEACAS_HAVE_MPI MPI_Finalize(); +#endif return errorCode; }