From f86b1f7d811b2d7c8b8411fb65e148f4d37627a3 Mon Sep 17 00:00:00 2001 From: Dan Ibanez Date: Wed, 17 Nov 2021 16:28:16 -0700 Subject: [PATCH] Link to Caliper's CMake package (#518) if HYPRE_WITH_CALIPER is enabled, then actually find the CMake package for caliper and link to it. Without this, include files are not found and the caliper library is not properly linked. --- src/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 096a7efa1..922cb05d0 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -373,6 +373,11 @@ if (HYPRE_USING_CUDA) endif () endif () +if (HYPRE_USING_CALIPER) + find_package(caliper REQUIRED) + target_link_libraries(${PROJECT_NAME} PUBLIC caliper) +endif() + # Configure a header file to pass CMake settings to the source code configure_file( "${CMAKE_CURRENT_SOURCE_DIR}/config/HYPRE_config.h.cmake.in"