mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
Don't build util tests when HDF5_EXTERNALLY_CONFIGURED=ON (#3781)
Fixes #3780
This commit is contained in:
parent
44ec53ec48
commit
87b3e7c821
@ -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 ()
|
||||
|
@ -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)
|
||||
|
@ -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 ()
|
||||
|
@ -49,7 +49,7 @@ endif ()
|
||||
#-----------------------------------------------------------------------------
|
||||
# Testing
|
||||
#-----------------------------------------------------------------------------
|
||||
if (BUILD_TESTING)
|
||||
if (NOT HDF5_EXTERNALLY_CONFIGURED AND BUILD_TESTING)
|
||||
add_subdirectory (test)
|
||||
endif ()
|
||||
|
||||
|
@ -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)
|
||||
|
||||
# --------------------------------------------------------------------
|
||||
|
@ -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 ()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user