mirror of
https://github.com/MaJerle/lwshell.git
synced 2025-01-25 13:02:54 +08:00
Update CMake to expose lib as PUBLIC/PRIVATE and not INTERFACE
This commit is contained in:
parent
6a3faf74ff
commit
94a74e3aa4
@ -2,6 +2,8 @@
|
||||
|
||||
## Develop
|
||||
|
||||
- Rework library CMake with removed INTERFACE type
|
||||
|
||||
## 1.2.0
|
||||
|
||||
- Change license year to 2022
|
||||
|
@ -26,9 +26,9 @@ set(lwshell_include_DIRS
|
||||
)
|
||||
|
||||
# Register library to the system
|
||||
add_library(lwshell INTERFACE)
|
||||
target_sources(lwshell INTERFACE ${lwshell_core_SRCS})
|
||||
target_include_directories(lwshell INTERFACE ${lwshell_include_DIRS})
|
||||
add_library(lwshell)
|
||||
target_sources(lwshell PRIVATE ${lwshell_core_SRCS})
|
||||
target_include_directories(lwshell PUBLIC ${lwshell_include_DIRS})
|
||||
target_compile_options(lwshell PRIVATE ${LWSHELL_COMPILE_OPTIONS})
|
||||
target_compile_definitions(lwshell PRIVATE ${LWSHELL_COMPILE_DEFINITIONS})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user