Skip to content

Commit 2adf5fe

Browse files
committed
fix(shell): do not link OcreShell with OcreCore
The application will select which Ocre API will be used as the backend for ocre-cli. So we add the OcreCore include directories only to OcreShell, and let the application decide when to link. Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
1 parent 6a8cef4 commit 2adf5fe

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/samples/static_checks/posix/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ target_link_libraries(ocre_cmd
1818
OcreShell
1919
)
2020

21-
target_link_libraries(OcreShell
22-
PUBLIC
23-
OcreCore
24-
)
25-
2621
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
2722
find_package(Threads)
2823
target_link_libraries(ocre_cmd PRIVATE Threads::Threads)

src/shell/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ target_sources(OcreShell
2929
)
3030

3131
target_include_directories(OcreShell
32+
PRIVATE
33+
../ocre/include
34+
../runtime/include
3235
PUBLIC
3336
include
3437
)

0 commit comments

Comments
 (0)