cmake add_custom_command issue with multiple output files

前端 未结 1 1139
臣服心动
臣服心动 2021-02-19 04:48

I\'m noticing some potential incorrect behavior in cmake when working with add_custom_command and multiple output files. I\'ve been able to isolate the problem to

1条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-19 05:03

    This is in fact a bug in CMake 2.8.12.1. According to the CMake folks, the first output is being treated specially by the Makefile generator (though, there probably isn't a reason for it to be treated specially). A fix to CMake has been made, and is targeted for CMake 3.2.

    See the CMake bugreport: http://www.cmake.org/Bug/view.php?id=15116

    0 讨论(0)
提交回复
热议问题