mirror of
https://github.com/reactos/CMake.git
synced 2024-12-14 15:19:39 +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.
2 lines
57 B
CMake
2 lines
57 B
CMake
add_library(A STATIC a.c $<TARGET_OBJECTS:DoesNotExist>)
|