Skip to content

Commit

Permalink
cmake options
Browse files Browse the repository at this point in the history
  • Loading branch information
rex-schilasky committed Oct 21, 2024
1 parent d685b4f commit d676b2d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
6 changes: 5 additions & 1 deletion ecal/core/src/registration/ecal_registration_receiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,12 @@ namespace eCAL
CRegistrationReceiver::CRegistrationReceiver(const Registration::SAttributes& attr_)
: m_timeout_provider(nullptr)
, m_timeout_provider_thread(nullptr)
#if ECAL_CORE_TRANSPORT_UDP
, m_registration_receiver_udp(nullptr)
, m_registration_receiver_shm(nullptr)
#endif
#if ECAL_CORE_REGISTRATION_SHM
, m_registration_receiver_shm(nullptr)
#endif
, m_sample_applier(Registration::SampleApplier::BuildSampleApplierAttributes(attr_))
, m_attributes(attr_)
{
Expand Down
24 changes: 10 additions & 14 deletions ecal/tests/cpp/registration_test_public/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,16 @@ project(test_registration_public)
find_package(Threads REQUIRED)
find_package(GTest REQUIRED)

if(ECAL_CORE_PUBLISHER AND ECAL_CORE_SUBSCRIBER)
set(registration_test_topics_src
src/registration_getpublisherids.cpp
src/registration_getsubscriberids.cpp
src/registration_gettopics.cpp
)
endif()

if(ECAL_CORE_SERVICE)
set(registration_test_service_src
src/registration_getclients.cpp
src/registration_getservices.cpp
)
endif()
set(registration_test_topics_src
src/registration_getpublisherids.cpp
src/registration_getsubscriberids.cpp
src/registration_gettopics.cpp
)

set(registration_test_service_src
src/registration_getclients.cpp
src/registration_getservices.cpp
)

set(registration_test_src
${registration_test_topics_src}
Expand Down

0 comments on commit d676b2d

Please sign in to comment.