add_custom_command error message specifies an incorrect argument name
cmake_minimum_required(VERSION 3.11)
project(t C)
add_library(x SHARED x.c)
add_custom_command(TARGET x
POST_BUILD
COMMAND ""
BYPRODUCTS "$<>"
VERBATIM
)
When configuring this CMakeLists, cmake complains add_custom_command called with OUTPUT containing a "<"
, but there is no OUTPUT
argument; it's named BYPRODUCTS
.