Skip to content

Commit

Permalink
🐛 (cmake): Remove ContainerKit from automagically linked libs
Browse files Browse the repository at this point in the history
Having ContainerKit in automagically linked libs was causing issues when
they include one another.
  • Loading branch information
ladislas committed Oct 8, 2021
1 parent 9fb29b1 commit 1a09ce1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,12 @@ include_directories(BEFORE
add_subdirectory(${LIBS_DIR}/Utils)
add_subdirectory(${LIBS_DIR}/LogKit)
add_subdirectory(${LIBS_DIR}/HelloWorld)
add_subdirectory(${LIBS_DIR}/ContainerKit)
add_subdirectory(${LIBS_DIR}/CriticalSection)

link_libraries(
Utils
LogKit
HelloWorld
ContainerKit
CriticalSection
)

Expand Down
1 change: 1 addition & 0 deletions libs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Copyright 2020 APF France handicap
# SPDX-License-Identifier: Apache-2.0

add_subdirectory(${LIBS_DIR}/ContainerKit)
add_subdirectory(${LIBS_DIR}/FileManager)
add_subdirectory(${LIBS_DIR}/FileSystemKit)

Expand Down
1 change: 1 addition & 0 deletions libs/LogKit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ target_sources(LogKit

target_link_libraries(LogKit
mbed-os
ContainerKit
)

if (${CMAKE_PROJECT_NAME} STREQUAL "LekaOSUnitTests")
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ add_subdirectory(./mocks)

leka_register_unit_tests_for_library(Utils)
leka_register_unit_tests_for_library(LogKit)
leka_register_unit_tests_for_library(ContainerKit)
leka_register_unit_tests_for_library(CriticalSection)

#
Expand All @@ -187,7 +186,6 @@ leka_register_unit_tests_for_library(CriticalSection)
link_libraries(
Utils
LogKit
ContainerKit
CriticalSection
)

Expand Down Expand Up @@ -217,6 +215,7 @@ leka_register_unit_tests_for_driver(CoreBufferedSerial)
# Register libraries
leka_register_unit_tests_for_library(LKAnimationKit)
leka_register_unit_tests_for_library(LKCalculatorKit)
leka_register_unit_tests_for_library(ContainerKit)
leka_register_unit_tests_for_library(FileSystemKit)
leka_register_unit_tests_for_library(IOKit)

Expand Down

0 comments on commit 1a09ce1

Please sign in to comment.