epan/dissectors/xcbproto
epan/dissectors/packet-ncp2222.c
epan/dissectors/dissectors.c
-epan/dissectors/dissectors.c.in
+epan/dissectors/dissectors.in.txt
epan/dissectors/make-dissectors
epan/dtd_parse.c
epan/dtd_preparse.c
# Needed for GREATER_EQUAL operator
cmake_minimum_required(VERSION 3.7)
else()
- cmake_minimum_required(VERSION 2.8.11)
+ cmake_minimum_required(VERSION 2.8.12)
endif()
#Where to find local cmake scripts
# We pass the arguments to make-dissectors in a file to avoid limitations
# with the number of arguments handled by main().
#
-string(REPLACE ";" "\n" dissectors_c_in_contents "${ALL_DISSECTOR_SRC}\n")
-file(WRITE
- "${CMAKE_CURRENT_BINARY_DIR}/dissectors.c.in"
- "${dissectors_c_in_contents}"
+file(GENERATE
+ OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/dissectors.in.txt"
+ CONTENT "$<JOIN:${ALL_DISSECTOR_SRC},\n>\n"
)
add_custom_command(
OUTPUT dissectors.c
- COMMAND make-dissectors dissectors.c @dissectors.c.in
+ COMMAND make-dissectors dissectors.c @dissectors.in.txt
DEPENDS make-dissectors ${ALL_DISSECTOR_SRC}
+ "${CMAKE_CURRENT_BINARY_DIR}/dissectors.in.txt"
COMMENT "Making dissectors.c"
)
#
dissectors.c: make-dissectors $(ALL_DISSECTORS_SRC)
@echo Making dissectors.c
- @echo $^ | tr ' ' '\n' | $(GREP) '\.c$$' > $@.in && \
- $(builddir)/make-dissectors $@ @$@.in
+ @echo $^ | tr ' ' '\n' | $(GREP) '\.c$$' > dissectors.in.txt && \
+ $(builddir)/make-dissectors $@ @dissectors.in.txt
MOSTLYCLEANFILES = \
- dissectors.c.in
+ dissectors.in.txt
DISTCLEANFILES = \
$(NODIST_GENERATED_FILES)