Why can CMake ignore add_custom_command? [duplicate]
This question already has answers here: CMake add_custom_command not being run (3 answers) Closed 5 days ago. I have following problem: In my cmake project I create for each target custom command, that will write its includes in file. set(TARGET_INCLUDES $<TARGET_PROPERTY:${target},INCLUDE_DIRECTORIES>) set(INCL_FILE “project_includes/${target}_includes.txt”) set( INC_WRITER_FLAGS –include-path ${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES} ${TARGET_INCLUDES} –output ${CMAKE_BINARY_DIR}/${INCL_FILE} ) message(“!!!!!!!!!!!!! generating rule for […]
cmake, TARGET was not created in this directory
I have two custom commands, do things for my target.