Skip to content

Commit 735e7a5

Browse files
authored
Merge pull request #3 from compnerd/libs
build: improve library linkage
2 parents 6f3c10a + 9f42104 commit 735e7a5

File tree

5 files changed

+12
-2
lines changed

5 files changed

+12
-2
lines changed

src/glow/IR/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ add_library(IR
44
Type.cpp
55
IRBuilder.cpp
66
Instrs.cpp)
7+
target_link_libraries(IR
8+
PUBLIC
9+
Support)
710

src/glow/Importer/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ add_library(Importer
1111
${PROTO_HDRS})
1212
target_link_libraries(Importer
1313
PRIVATE
14+
IR
1415
${PROTOBUF_LIBRARY})
1516

src/glow/Models/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11

22
add_library(Models
33
Builders.cpp)
4+
target_link_libraries(Models
5+
PRIVATE
6+
Network)
47

src/glow/Network/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ add_library(Network
66
Node.cpp
77
Nodes.cpp)
88
target_link_libraries(Network
9-
PRIVATE
10-
Support)
9+
PUBLIC
10+
IR)
1111
if(PNG_FOUND)
1212
target_compile_definitions(Network
1313
PRIVATE

src/glow/Support/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ add_library(Support
55
target_link_libraries(Support
66
INTERFACE
77
LLVMSupport)
8+
target_include_directories(Support
9+
PUBLIC
10+
$<TARGET_PROPERTY:LLVMSupport,INTERFACE_INCLUDE_DIRECTORIES>)
811

0 commit comments

Comments
 (0)