Skip to content

Commit

Permalink
Add guards to add Federated for network files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakio815 committed Jan 28, 2025
1 parent 7370d8a commit bf557ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ include(${LF_ROOT}/platform/impl/CMakeLists.txt)
target_link_libraries(reactor-c PUBLIC lf::platform-api)
target_link_libraries(reactor-c PRIVATE lf::platform-impl)

if(DEFINED FEDERATED)
option(COMM_TYPE "Communication type between RTI and federate(s)." ON)
IF(COMM_TYPE MATCHES ON)
set(COMM_TYPE TCP)
Expand All @@ -104,11 +105,11 @@ include(${LF_ROOT}/network/api/CMakeLists.txt)
include(${LF_ROOT}/network/impl/CMakeLists.txt)
target_link_libraries(reactor-c PUBLIC lf::network-api)
target_link_libraries(reactor-c PRIVATE lf::network-impl)
endif()

target_include_directories(reactor-c PUBLIC ../include)
target_include_directories(reactor-c PUBLIC ../include/core)
target_include_directories(reactor-c PUBLIC ../include/core/federated)
target_include_directories(reactor-c PUBLIC ../include/core/federated/network)
target_include_directories(reactor-c PUBLIC ../include/core/platform)
target_include_directories(reactor-c PUBLIC ../include/core/modal_models)
target_include_directories(reactor-c PUBLIC ../include/core/threaded)
Expand Down

0 comments on commit bf557ef

Please sign in to comment.