Skip to content

Commit 9e486e0

Browse files
authored
Merge pull request #434 from secure-software-engineering/f-FixesMissingLinkDeps
Fixes linking issues of taintconfig + json workaround
2 parents 1789560 + 50a2af2 commit 9e486e0

5 files changed

Lines changed: 16 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ set(BUILD_TESTS OFF CACHE BOOL "Build json-schema-validator-tests")
135135

136136
# Make nlohmann_json_schema_validator happy by telling it how to find the single include of nlohmann_json
137137
include_directories(external/json/single_include/)
138+
139+
if (PHASAR_IN_TREE)
140+
set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS nlohmann_json_schema_validator)
141+
endif()
142+
138143
set(nlohmann_json_DIR ${PHASAR_SRC_DIR}/external/json/single_include/)
139144

140145
# Json Schema Validator

lib/PhasarLLVM/DataFlowSolver/Mono/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set(PHASAR_LINK_LIBS
55
phasar_utils
66
phasar_phasarllvm_utils
77
phasar_db
8+
phasar_taintconfig
89
)
910

1011
set(LLVM_LINK_COMPONENTS

lib/PhasarLLVM/DataFlowSolver/Mono/phasar_mono-config.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ list(APPEND
1111
utils
1212
phasarllvm_utils
1313
db
14+
taintconfig
1415
)
1516

1617
foreach(dep ${PHASAR_MONO_DEPS})

lib/PhasarLLVM/TaintConfig/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ file(GLOB_RECURSE TAINTCONFIG_SRC *.h *.cpp)
22

33
set(PHASAR_LINK_LIBS
44
phasar_utils
5+
phasar_db
6+
phasar_phasarllvm_utils
7+
)
8+
9+
set(LLVM_LINK_COMPONENTS
10+
Core
11+
Support
512
)
613

714
if(BUILD_SHARED_LIBS)

lib/PhasarLLVM/TaintConfig/phasar_taintconfig-config.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ set(PHASAR_taintconfig_COMPONENT_FOUND 1)
33
list(APPEND
44
PHASAR_TAINTCONFIG_DEPS
55
utils
6+
db
7+
phasarllvm_utils
68
)
79

810
foreach(dep ${PHASAR_TAINTCONFIG_DEPS})

0 commit comments

Comments
 (0)