summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2023-10-30 17:47:06 (GMT)
committerGitHub <noreply@github.com>2023-10-30 17:47:06 (GMT)
commit87b3e7c8211d9c587589f4d8d2965efb119fbf6d (patch)
tree26228b9958a5d87608330c0e901c804ef3e167a5
parent44ec53ec485029fc964d67c811c5d3e227f99372 (diff)
downloadhdf5-87b3e7c8211d9c587589f4d8d2965efb119fbf6d.zip
hdf5-87b3e7c8211d9c587589f4d8d2965efb119fbf6d.tar.gz
hdf5-87b3e7c8211d9c587589f4d8d2965efb119fbf6d.tar.bz2
Don't build util tests when HDF5_EXTERNALLY_CONFIGURED=ON (#3781)
Fixes #3780
-rw-r--r--c++/CMakeLists.txt2
-rw-r--r--fortran/CMakeLists.txt2
-rw-r--r--hl/CMakeLists.txt2
-rw-r--r--java/CMakeLists.txt2
-rw-r--r--tools/CMakeLists.txt2
-rw-r--r--utils/CMakeLists.txt2
6 files changed, 6 insertions, 6 deletions
diff --git a/c++/CMakeLists.txt b/c++/CMakeLists.txt
index 2c0275b..b419c80 100644
--- a/c++/CMakeLists.txt
+++ b/c++/CMakeLists.txt
@@ -13,6 +13,6 @@ endif ()
#-----------------------------------------------------------------------------
# Build the CPP unit tests
#-----------------------------------------------------------------------------
-if (BUILD_TESTING)
+if (NOT HDF5_EXTERNALLY_CONFIGURED AND BUILD_TESTING)
add_subdirectory (test)
endif ()
diff --git a/fortran/CMakeLists.txt b/fortran/CMakeLists.txt
index cf9b427..efaf963 100644
--- a/fortran/CMakeLists.txt
+++ b/fortran/CMakeLists.txt
@@ -22,7 +22,7 @@ endif ()
#-----------------------------------------------------------------------------
# Testing
#-----------------------------------------------------------------------------
-if (BUILD_TESTING)
+if (NOT HDF5_EXTERNALLY_CONFIGURED AND BUILD_TESTING)
add_subdirectory (test)
if (MPI_Fortran_FOUND)
add_subdirectory (testpar)
diff --git a/hl/CMakeLists.txt b/hl/CMakeLists.txt
index a777b72..45a9a22 100644
--- a/hl/CMakeLists.txt
+++ b/hl/CMakeLists.txt
@@ -26,6 +26,6 @@ if (HDF5_BUILD_EXAMPLES)
endif ()
#-- Build the Unit testing if requested
-if (BUILD_TESTING AND HDF5_TEST_SERIAL)
+if (HDF5_EXTERNALLY_CONFIGURED AND BUILD_TESTING AND HDF5_TEST_SERIAL)
add_subdirectory (test)
endif ()
diff --git a/java/CMakeLists.txt b/java/CMakeLists.txt
index ae37ceb..4965f2c 100644
--- a/java/CMakeLists.txt
+++ b/java/CMakeLists.txt
@@ -49,7 +49,7 @@ endif ()
#-----------------------------------------------------------------------------
# Testing
#-----------------------------------------------------------------------------
-if (BUILD_TESTING)
+if (NOT HDF5_EXTERNALLY_CONFIGURED AND BUILD_TESTING)
add_subdirectory (test)
endif ()
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
index 55f2c2a..91c57c9 100644
--- a/tools/CMakeLists.txt
+++ b/tools/CMakeLists.txt
@@ -7,7 +7,7 @@ add_subdirectory (lib)
add_subdirectory (src)
#-- Add the tests
-if (BUILD_TESTING)
+if (NOT HDF5_EXTERNALLY_CONFIGURED AND BUILD_TESTING)
add_subdirectory (test)
# --------------------------------------------------------------------
diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt
index 718f88e..b7e4630 100644
--- a/utils/CMakeLists.txt
+++ b/utils/CMakeLists.txt
@@ -1,7 +1,7 @@
cmake_minimum_required (VERSION 3.18)
project (HDF5_UTILS C)
-if (BUILD_TESTING)
+if (NOT HDF5_EXTERNALLY_CONFIGURED AND BUILD_TESTING)
add_subdirectory (test)
endif ()