ソースを参照

Make the discovery example depend on UA_ENABLE_DISCOVERY_MULTICAST

Without having open62541 configured with UA_ENABLE_DISCOVERY_MULTICAST the examples
are not functional.

./discovery_server_register exits early with an error.
./discovery_server_lds complains on connect of ./discovery_server_register about:
info/channel Connection 6 | SecureChannel 3 | Unknown request with type identifier 12208
Frank Meerkoetter 6 年 前
コミット
6ac10fa55a
共有1 個のファイルを変更した2 個の追加6 個の削除を含む
  1. 2 6
      examples/CMakeLists.txt

+ 2 - 6
examples/CMakeLists.txt

@@ -144,15 +144,11 @@ if(UA_BUILD_SELFSIGNED_CERTIFICATE)
   target_link_libraries(server_certificate open62541 ${open62541_LIBRARIES})
 endif()
 
-if(UA_ENABLE_DISCOVERY)
+if(UA_ENABLE_DISCOVERY_MULTICAST)
     add_example(discovery_server_lds discovery/server_lds.c)
-
     add_example(discovery_server_register discovery/server_register.c)
-
     add_example(discovery_client_find_servers discovery/client_find_servers.c)
-    if(UA_ENABLE_DISCOVERY_MULTICAST)
-        add_example(discovery_server_multicast discovery/server_multicast.c)
-    endif()
+    add_example(discovery_server_multicast discovery/server_multicast.c)
 endif()
 
 add_subdirectory(nodeset)