From 5ec457c76b1ca3d4ce657ae5ffa534595a846b5c Mon Sep 17 00:00:00 2001 From: Stanislaw Kaushanski Date: Tue, 8 Mar 2022 11:23:07 +0100 Subject: [PATCH] build pctrace plugin only if RapidJSON target is availble --- CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6fa3d9b..64f83ff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ project(dbt-rise-tgc VERSION 1.0.0) include(GNUInstallDirs) -find_package(elfio) +find_package(elfio QUIET) find_package(Boost COMPONENTS coroutine) if(WITH_LLVM) @@ -35,13 +35,12 @@ FILE(GLOB TGC_VM_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/vm/interp/vm_*.cpp) set(LIB_SOURCES src/vm/fp_functions.cpp src/plugin/instruction_count.cpp - src/plugin/pctrace.cpp ${TGC_SOURCES} ${TGC_VM_SOURCES} ) if(TARGET RapidJSON) - list(APPEND LIB_SOURCES src/plugin/cycle_estimate.cpp) + list(APPEND LIB_SOURCES src/plugin/cycle_estimate.cpp src/plugin/pctrace.cpp) endif() if(WITH_LLVM)