mirror of
https://github.com/reactos/CMake.git
synced 2024-12-15 07:41:15 +00:00
5683101669
Add "RunCMake.ObjectLibrary" test to verify that unsupported use cases are rejected with errors: * An OBJECT library may not reference another object library * An OBJECT library may not be referenced in target_link_libraries * An OBJECT library may not contain non-compiling sources * An OBJECT library may not have pre/post build/link commands * An OBJECT library may not be installed, exported, or imported Also verify that invalid $<TARGET_OBJECTS:...> expressions are diagnosed.
7 lines
324 B
Plaintext
7 lines
324 B
Plaintext
CMake Error at LinkObjRHS1.cmake:3 \(target_link_libraries\):
|
|
Target "AnObjLib" of type OBJECT_LIBRARY may not be linked into another
|
|
target. One may link only to STATIC or SHARED libraries, or to executables
|
|
with the ENABLE_EXPORTS property set.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)
|