2c470b775a
Loosen this restriction on OBJECT libraries to allow source files of any name to be generated by custom commands or listed for reference in IDE projects so long as they would not affect linking of a normal library. Update the rejection message to be more specific about the looser restriction. Extend the ObjectLibrary test to cover a ".cmake" file generated by a custom command in an OBJECT library.
10 lines
297 B
Plaintext
10 lines
297 B
Plaintext
CMake Error at BadObjSource1.cmake:1 \(add_library\):
|
|
OBJECT library "A" contains:
|
|
|
|
bad.def
|
|
|
|
but may contain only sources that compile, header files, and other files
|
|
that would not affect linking of a normal library.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)
|