message: Link fuzzing engine depends on environment
diff: # Copyright Soramitsu Co., Ltd. All Rights Reserved.
  # SPDX-License-Identifier: Apache-2.0
  -#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fsanitize=fuzzer,address")
  -
  find_package(protobuf-mutator REQUIRED)
  +if(DEFINED ENV{LIB_FUZZING_ENGINE})
  + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} $ENV{LIB_FUZZING_ENGINE}")
  + set(fuzzing_engine "")
  +else()
  add_library(fuzzing_engine standalone_fuzz_target_runner.cpp)
  +endif()
  add_executable(torii_fuzzing torii_fuzz.cpp)
  target_link_libraries(torii_fuzzing
  @@ -15,7 +18,7 @@ target_link_libraries(torii_fuzzing
  ametsuchi
  torii_service
  protobuf-mutator
  - fuzzing_engine
  + ${fuzzing_engine}
  )
  add_executable(status_fuzzing status_fuzz.cpp)
  @@ -26,7 +29,7 @@ target_link_libraries(status_fuzzing
  ametsuchi
  torii_service
  protobuf-mutator
  - fuzzing_engine
  + ${fuzzing_engine}
  )
  add_executable(find_fuzzing find_fuzz.cpp)
  @@ -37,7 +40,7 @@ target_link_libraries(find_fuzzing
  ametsuchi
  torii_service
  protobuf-mutator
  - fuzzing_engine
  + ${fuzzing_engine}
  )
  add_executable(send_batches_fuzz send_batches_fuzz.cpp)
  @@ -48,7 +51,7 @@ target_link_libraries(send_batches_fuzz
  on_demand_ordering_service
  on_demand_ordering_service_transport_grpc
  protobuf-mutator
  - fuzzing_engine
  + ${fuzzing_engine}
  )
  add_executable(request_proposal_fuzz request_proposal_fuzz.cpp)
  @@ -60,7 +63,7 @@ target_link_libraries(request_proposal_fuzz
  on_demand_ordering_service
  on_demand_ordering_service_transport_grpc
  protobuf-mutator
  - fuzzing_engine
  + ${fuzzing_engine}
  )
  add_executable(retrieve_block_fuzz retrieve_block_fuzz.cpp)
  @@ -70,7 +73,7 @@ target_link_libraries(retrieve_block_fuzz
  block_loader_service
  shared_model_default_builders
  protobuf-mutator
  - fuzzing_engine
  + ${fuzzing_engine}
  )
  add_executable(retrieve_blocks_fuzz retrieve_blocks_fuzz.cpp)
  @@ -80,7 +83,7 @@ target_link_libraries(retrieve_blocks_fuzz
  block_loader_service
  shared_model_default_builders
  protobuf-mutator
  - fuzzing_engine
  + ${fuzzing_engine}
  )
  add_executable(consensus_fuzz consensus_fuzz.cpp)
  @@ -91,7 +94,7 @@ target_link_libraries(consensus_fuzz
  yac
  protobuf-mutator
  test_logger
  - fuzzing_engine
  + ${fuzzing_engine}
  )
  add_executable(mst_fuzz mst_fuzz.cpp)
  @@ -101,5 +104,5 @@ target_link_libraries(mst_fuzz
  mst_transport
  ametsuchi
  protobuf-mutator
  - fuzzing_engine
  + ${fuzzing_engine}
  )
  