Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit 03ef46c

Browse files
cmake: check for pmemcheck before finding pmreorder
1 parent 3fa1a4f commit 03ef46c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/ctest_helpers.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-License-Identifier: BSD-3-Clause
2-
# Copyright 2018-2020, Intel Corporation
2+
# Copyright 2018-2021, Intel Corporation
33

44
#
55
# ctest_helpers.cmake - helper functions for tests/CMakeLists.txt
@@ -58,7 +58,7 @@ function(find_packages)
5858

5959
# XXX: if pmreorder not supported (e.g. on Win) - print one message "tests will be skipped"
6060
if(NOT WIN32)
61-
if(VALGRIND_FOUND AND TESTS_PMREORDER)
61+
if(VALGRIND_FOUND AND VALGRIND_PMEMCHECK_FOUND AND TESTS_PMREORDER)
6262
if((NOT(PMEMCHECK_VERSION LESS 1.0)) AND PMEMCHECK_VERSION LESS 2.0)
6363
find_program(PMREORDER names pmreorder HINTS ${LIBPMEMOBJ_PREFIX}/bin)
6464
get_program_version_major_minor(${PMREORDER} PMREORDER_VERSION)

0 commit comments

Comments
 (0)