Skip to content

Commit

Permalink
Fix CMake to use user input, and default value as TCP.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakio815 committed Jan 29, 2025
1 parent 0df7bfb commit 421c4f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion core/federated/RTI/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ if (NOT DEFINED LOG_LEVEL)
set(LOG_LEVEL 0)
ENDIF(NOT DEFINED LOG_LEVEL)

set(COMM_TYPE TCP)
if(NOT DEFINED COMM_TYPE)
set(COMM_TYPE "TCP")
endif()

IF(CMAKE_BUILD_TYPE MATCHES DEBUG)
# Set the LOG_LEVEL to 4 to get DEBUG messages
Expand Down
2 changes: 1 addition & 1 deletion network/impl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ target_sources(lf-network-impl PUBLIC
if(COMM_TYPE MATCHES TCP)
target_sources(lf-network-impl PUBLIC ${CMAKE_CURRENT_LIST_DIR}/src/lf_socket_support.c)
else()
message(FATAL_ERROR "Your communication type is not supported! The C target supports TCP, MQTT and SST.")
message(FATAL_ERROR "Your communication type is not supported! The C target supports TCP.")
endif()

# Link necessary libraries
Expand Down

0 comments on commit 421c4f2

Please sign in to comment.