Set SKIP_AUTOMOC for some generated files, to deal with CMP0071

parent aa6636f2
......@@ -36,12 +36,14 @@ if (MD5SUM_EXECUTABLE)
else ()
set(FISH_GENERATOR "generate_fishcode.sh")
endif ()
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/fishcode.h
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/${FISH_GENERATOR} ARGS ${CMAKE_CURRENT_SOURCE_DIR}/fish.pl ${MD5SUM_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/fishcode.h "${CUT_ARG}"
set(fishcode_HDR "${CMAKE_CURRENT_BINARY_DIR}/fishcode.h")
add_custom_command(OUTPUT ${fishcode_HDR}
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/${FISH_GENERATOR} ARGS ${CMAKE_CURRENT_SOURCE_DIR}/fish.pl ${MD5SUM_EXECUTABLE} ${fishcode_HDR} "${CUT_ARG}"
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/fish.pl
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )
set_source_files_properties(${fishcode_HDR} PROPERTIES SKIP_AUTOMOC TRUE)
set(kio_fish_PART_SRCS fish.cpp ${CMAKE_CURRENT_BINARY_DIR}/fishcode.h)
set(kio_fish_PART_SRCS fish.cpp ${fishcode_HDR})
ecm_qt_declare_logging_category(kio_fish_PART_SRCS
HEADER loggingcategory.h
......
......@@ -20,6 +20,7 @@ endif()
set(kio_man_PART_SRCS man2html.cpp kio_man.cpp request_hash.cpp kio_man_debug.cpp)
ecm_gperf_generate(requests.gperf ${CMAKE_CURRENT_BINARY_DIR}/request_gperf.h kio_man_PART_SRCS)
set_property(SOURCE ${CMAKE_CURRENT_BINARY_DIR}/request_gperf.h PROPERTY SKIP_AUTOMOC ON)
add_library(kio_man MODULE ${kio_man_PART_SRCS})
if (AVOID_NULLPTR_WARNING_FLAG)
......
......@@ -9,6 +9,7 @@ set(kio_man_test_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/../kio_man.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../kio_man_debug.cpp)
ecm_gperf_generate(../requests.gperf ${CMAKE_CURRENT_BINARY_DIR}/request_gperf.h kio_man_test_SRCS)
set_property(SOURCE ${CMAKE_CURRENT_BINARY_DIR}/request_gperf.h PROPERTY SKIP_AUTOMOC ON)
......@@ -29,6 +30,7 @@ set(man2html_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/../man2html.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../kio_man_debug.cpp)
ecm_gperf_generate(../requests.gperf ${CMAKE_CURRENT_BINARY_DIR}/request_gperf.h man2html_SRCS)
set_property(SOURCE ${CMAKE_CURRENT_BINARY_DIR}/request_gperf.h PROPERTY SKIP_AUTOMOC ON)
add_executable(man2html ${man2html_SRCS})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment