Skip to content

Commit 61e43d6

Browse files
committed
Update CMake to expose lib as PUBLIC/PRIVATE and not INTERFACE
1 parent a00b8ff commit 61e43d6

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Develop
44

5+
- Rework library CMake with removed INTERFACE type
6+
57
## v3.2.0
68

79
- Add user argument option

lwrb/library.cmake

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ set(lwrb_include_DIRS
3131

3232
# Register library to the system
3333
add_library(lwrb)
34-
target_sources(lwrb PUBLIC ${lwrb_core_SRCS})
34+
target_sources(lwrb PRIVATE ${lwrb_core_SRCS})
3535
target_include_directories(lwrb PUBLIC ${lwrb_include_DIRS})
36-
target_compile_options(lwrb PUBLIC ${LWRB_COMPILE_OPTIONS})
37-
target_compile_definitions(lwrb PUBLIC ${LWRB_COMPILE_DEFINITIONS})
36+
target_compile_options(lwrb PRIVATE ${LWRB_COMPILE_OPTIONS})
37+
target_compile_definitions(lwrb PRIVATE ${LWRB_COMPILE_DEFINITIONS})
3838

3939
# Register extended part
4040
add_library(lwrb_ex)
41-
target_sources(lwrb_ex PUBLIC ${lwrb_ex_SRCS})
41+
target_sources(lwrb_ex PRIVATE ${lwrb_ex_SRCS})
4242
target_include_directories(lwrb_ex PUBLIC ${lwrb_include_DIRS})
43-
target_compile_options(lwrb_ex PUBLIC ${LWRB_COMPILE_OPTIONS})
44-
target_compile_definitions(lwrb_ex PUBLIC ${LWRB_COMPILE_DEFINITIONS} LWRB_EXTENDED)
43+
target_compile_options(lwrb_ex PRIVATE ${LWRB_COMPILE_OPTIONS})
44+
target_compile_definitions(lwrb_ex PRIVATE ${LWRB_COMPILE_DEFINITIONS} LWRB_EXTENDED)

0 commit comments

Comments
 (0)