build pctrace plugin only if RapidJSON target is availble
This commit is contained in:
parent
2e670c4d03
commit
5ec457c76b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue