AdamKorcz commented on code in PR #465:
URL: https://github.com/apache/logging-log4cxx/pull/465#discussion_r1936257027


##########
src/fuzzers/cpp/CMakeLists.txt:
##########
@@ -49,31 +49,34 @@ else()
 endif()
 
 foreach(fuzzerName IN LISTS ALL_LOG4CXX_FUZZERS)
-  set(PROGRAM_NAME "${fuzzerName}")
-  add_executable(${PROGRAM_NAME} ${fuzzerName}.cpp)
-  target_compile_definitions(${PROGRAM_NAME}
-    PRIVATE
-      ${FUZZER_COMPILE_DEFINITIONS}
-      ${LOG4CXX_COMPILE_DEFINITIONS}
-      ${APR_COMPILE_DEFINITIONS}
-      ${APR_UTIL_COMPILE_DEFINITIONS})
-  target_include_directories(${PROGRAM_NAME}
-    PRIVATE
-      ${CMAKE_CURRENT_LIST_DIR}
-      $<TARGET_PROPERTY:log4cxx,INCLUDE_DIRECTORIES>)
-  target_link_libraries(${PROGRAM_NAME}
-    PRIVATE
-      ${FUZZER_SANITIZE_FLAGS}
-      log4cxx
-      ${APR_UTIL_LIBRARIES}
-      ${EXPAT_LIBRARIES}
-      ${APR_LIBRARIES}
-      ${APR_SYSTEM_LIBS})
-  if(WIN32)
-      set_target_properties(${PROGRAM_NAME}
-        PROPERTIES
-          VS_DEBUGGER_ENVIRONMENT "PATH=${ESCAPED_PATH}"
-          VS_DEBUGGER_WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
-          FOLDER Fuzzers)
-  endif()
+  foreach(logchar IN LISTS FUZZ_CHARS)

Review Comment:
   Thanks. Have updated the PR.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to