b2282631f6
After calls to ProcessSourceItemCMP0049, check for an empty return string to detect a failure instead of trusting GetErrorOccuredFlag. The latter could have been left from a preceding non-fatal error. Extend the RunCMake.Configure test to cover a case that exposed this problem.
4 lines
141 B
CMake
4 lines
141 B
CMake
message(SEND_ERROR "Error before add_custom_target")
|
|
add_custom_target(foo COMMAND echo)
|
|
message(SEND_ERROR "Error after add_custom_target")
|