mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-07 04:02:23 +03:00
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.
5 lines
185 B
Plaintext
5 lines
185 B
Plaintext
CMake Error at Install.cmake:2 \(install\):
|
|
install TARGETS given OBJECT library "A" which may not be installed.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)
|