How to make CMake reconfiguration depend on custom file?

后端 未结 2 1734
有刺的猬
有刺的猬 2020-11-30 11:45

I have a project under CMake with some files generated with python generator from XML files. I cannot specify all files generated by this generator in CMakeLists.txt so I us

2条回答
  •  南笙
    南笙 (楼主)
    2020-11-30 12:16

    It doesn't require any kind of workarounds. The standard way is to use CMAKE_CONFIGURE_DEPENDS property:

    set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS )
    

提交回复
热议问题