|
@@ -160,6 +160,18 @@ if(MSVC AND UA_NAMESPACE_ZERO STREQUAL "FULL")
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /STACK:8000000")
|
|
|
endif()
|
|
|
|
|
|
+if(UA_BUILD_FUZZING OR UA_BUILD_OSS_FUZZ OR UA_BUILD_FUZZING_CORPUS)
|
|
|
+ # Force enable options not passed in the build script, to also fuzzy-test this code
|
|
|
+ set(UA_ENABLE_DISCOVERY ON CACHE STRING "" FORCE)
|
|
|
+ set(UA_ENABLE_DISCOVERY_MULTICAST ON CACHE STRING "" FORCE)
|
|
|
+ set(UA_ENABLE_ENCRYPTION ON CACHE STRING "" FORCE)
|
|
|
+ set(UA_ENABLE_HISTORIZING ON CACHE STRING "" FORCE)
|
|
|
+ set(UA_ENABLE_JSON_ENCODING ON CACHE STRING "" FORCE)
|
|
|
+ set(UA_ENABLE_SUBSCRIPTIONS ON CACHE STRING "" FORCE)
|
|
|
+ set(UA_ENABLE_SUBSCRIPTIONS_EVENTS ON CACHE STRING "" FORCE)
|
|
|
+endif()
|
|
|
+
|
|
|
+
|
|
|
# It should not be possible to enable events without enabling subscriptions and full ns0
|
|
|
#if((UA_ENABLE_SUBSCRIPTIONS_EVENTS) AND (NOT (UA_ENABLE_SUBSCRIPTIONS AND UA_NAMESPACE_ZERO STREQUAL "FULL")))
|
|
|
# message(FATAL_ERROR "Unable to enable events without UA_ENABLE_SUBSCRIPTIONS and full namespace 0")
|
|
@@ -172,17 +184,6 @@ if(UA_ENABLE_COVERAGE)
|
|
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fprofile-arcs -ftest-coverage")
|
|
|
endif()
|
|
|
|
|
|
-if(UA_BUILD_FUZZING OR UA_BUILD_OSS_FUZZ OR UA_BUILD_FUZZING_CORPUS)
|
|
|
- # Force enable options not passed in the build script, to also fuzzy-test this code
|
|
|
- set(UA_ENABLE_DISCOVERY ON CACHE STRING "" FORCE)
|
|
|
- set(UA_ENABLE_DISCOVERY_MULTICAST ON CACHE STRING "" FORCE)
|
|
|
- set(UA_ENABLE_ENCRYPTION ON CACHE STRING "" FORCE)
|
|
|
- set(UA_ENABLE_HISTORIZING ON CACHE STRING "" FORCE)
|
|
|
- set(UA_ENABLE_JSON_ENCODING ON CACHE STRING "" FORCE)
|
|
|
- set(UA_ENABLE_SUBSCRIPTIONS ON CACHE STRING "" FORCE)
|
|
|
- set(UA_ENABLE_SUBSCRIPTIONS_EVENTS ON CACHE STRING "" FORCE)
|
|
|
-endif()
|
|
|
-
|
|
|
if(UA_ENABLE_DISCOVERY_MULTICAST AND NOT UA_ENABLE_DISCOVERY)
|
|
|
MESSAGE(WARNING "UA_ENABLE_DISCOVERY_MULTICAST is enabled, but not UA_ENABLE_DISCOVERY. UA_ENABLE_DISCOVERY_MULTICAST will be set to OFF")
|
|
|
SET(UA_ENABLE_DISCOVERY_MULTICAST OFF CACHE BOOL "Enable Discovery Service with multicast support (LDS-ME)" FORCE)
|