diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-08-13 17:57:59 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2019-08-13 17:57:59 (GMT) |
commit | 3d386a724e1b724b9a60357cb5154b9e9ba2fc36 (patch) | |
tree | 8c0fb68ca443346d8f728c027327d3a8f8e0b53c /tools | |
parent | 1162319719578748d6061aa1267e62b87cbb892e (diff) | |
download | hdf5-3d386a724e1b724b9a60357cb5154b9e9ba2fc36.zip hdf5-3d386a724e1b724b9a60357cb5154b9e9ba2fc36.tar.gz hdf5-3d386a724e1b724b9a60357cb5154b9e9ba2fc36.tar.bz2 |
Do not do tests if BUILD_TESTING off
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perform/CMakeLists.txt | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/tools/perform/CMakeLists.txt b/tools/perform/CMakeLists.txt index 109131c..b34f89f 100644 --- a/tools/perform/CMakeLists.txt +++ b/tools/perform/CMakeLists.txt @@ -87,20 +87,22 @@ else () endif () set_target_properties (overhead PROPERTIES FOLDER perform) -#-- Adding test for perf_meta -set (perf_meta_SOURCES - ${HDF5_TOOLS_PERFORM_SOURCE_DIR}/perf_meta.c -) -add_executable (perf_meta ${perf_meta_SOURCES}) -target_include_directories (perf_meta PRIVATE "${HDF5_TEST_SRC_DIR};${HDF5_SRC_DIR};${HDF5_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>") -if (NOT BUILD_SHARED_LIBS) - TARGET_C_PROPERTIES (perf_meta STATIC) - target_link_libraries (perf_meta PRIVATE ${HDF5_TOOLS_LIB_TARGET} ${HDF5_TEST_LIB_TARGET} ${HDF5_LIB_TARGET}) -else () - TARGET_C_PROPERTIES (perf_meta SHARED) - target_link_libraries (perf_meta PRIVATE ${HDF5_TOOLS_LIBSH_TARGET} ${HDF5_TEST_LIBSH_TARGET} ${HDF5_LIBSH_TARGET}) +if (BUILD_TESTING) + #-- Adding test for perf_meta + set (perf_meta_SOURCES + ${HDF5_TOOLS_PERFORM_SOURCE_DIR}/perf_meta.c + ) + add_executable (perf_meta ${perf_meta_SOURCES}) + target_include_directories (perf_meta PRIVATE "${HDF5_TEST_SRC_DIR};${HDF5_SRC_DIR};${HDF5_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>") + if (NOT BUILD_SHARED_LIBS) + TARGET_C_PROPERTIES (perf_meta STATIC) + target_link_libraries (perf_meta PRIVATE ${HDF5_TOOLS_LIB_TARGET} ${HDF5_TEST_LIB_TARGET} ${HDF5_LIB_TARGET}) + else () + TARGET_C_PROPERTIES (perf_meta SHARED) + target_link_libraries (perf_meta PRIVATE ${HDF5_TOOLS_LIBSH_TARGET} ${HDF5_TEST_LIBSH_TARGET} ${HDF5_LIBSH_TARGET}) + endif () + set_target_properties (perf_meta PROPERTIES FOLDER perform) endif () -set_target_properties (perf_meta PROPERTIES FOLDER perform) #-- Adding test for zip_perf set (zip_perf_SOURCES @@ -174,4 +176,7 @@ if (H5_HAVE_PARALLEL AND BUILD_TESTING) endif () endif () -include (CMakeTests.cmake) +if (BUILD_TESTING) + include (CMakeTests.cmake) +endif () +
\ No newline at end of file |