Bad error message with CMAKE_AUTOMOC
With the following cmake code:
cmake_minimum_required(VERSION 3.6)
project(testproj)
find_package(Qt5Core REQUIRED)
set(CMAKE_AUTOMOC ON)
add_library(somelib MODULE
libl.cpp
)
add_executable(mn
main.cpp
does_not_exist.cpp
)
cmake master doesn't warn about the missing file. Removing the set(CMAKE_AUTOMOC ON)
line causes a warning to appear.