浏览代码

Mark CustomCommand test perconfig.out as SYMBOLIC

The custom command with this output does not actually create the file,
so mark it as SYMBOLIC.
Brad King 15 年之前
父节点
当前提交
4499d50ad2
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Tests/CustomCommand/CMakeLists.txt

+ 1 - 0
Tests/CustomCommand/CMakeLists.txt

@@ -432,6 +432,7 @@ ADD_CUSTOM_COMMAND(
   DEPENDS ${PerConfig_DEPENDS}
   DEPENDS ${PerConfig_DEPENDS}
   VERBATIM
   VERBATIM
   )
   )
+SET_PROPERTY(SOURCE perconfig.out PROPERTY SYMBOLIC 1)
 ADD_CUSTOM_TARGET(perconfig_target ALL
 ADD_CUSTOM_TARGET(perconfig_target ALL
   COMMAND ${CMAKE_COMMAND} -E echo "perconfig=$<TARGET_FILE:perconfig>" "config=$<CONFIGURATION>"
   COMMAND ${CMAKE_COMMAND} -E echo "perconfig=$<TARGET_FILE:perconfig>" "config=$<CONFIGURATION>"
   DEPENDS perconfig.out)
   DEPENDS perconfig.out)