Teach the cmGeneratorExpressionEvaluator filesystem artifact logic to reject OBJECT_LIBRARY targets since they have no main artifact. Without the explicit rejection evaluation falls through to an internal CMake error message in cmTarget::GetOutputInfo. Extend the RunCMake.GeneratorExpression test to cover these cases.
12 lines
219 B
CMake
12 lines
219 B
CMake
include(RunCMake)
|
|
|
|
run_cmake(BadCONFIG)
|
|
run_cmake(BadOR)
|
|
run_cmake(BadAND)
|
|
run_cmake(BadNOT)
|
|
run_cmake(BadStrEqual)
|
|
run_cmake(BadZero)
|
|
run_cmake(BadTargetName)
|
|
run_cmake(BadTargetTypeObject)
|
|
run_cmake(BadInstallPrefix)
|