3f476beaf7
When $<TARGET_PROPERTY> names a build property like COMPILE_DEFINITIONS but not the usage requirement (INTERFACE_) version of it, the value should be that used to build the target. It should not be influenced by a dependent 'head' target like usage requirements are. Extend the CompileDefinitions test with a case covering the corrected behavior. Reviewed-by: Stephen Kelly <steveire@gmail.com>
11 lines
269 B
C
11 lines
269 B
C
#ifndef TGT_DEF
|
|
# error TGT_DEF incorrectly not defined
|
|
#endif
|
|
#ifndef TGT_TYPE_STATIC_LIBRARY
|
|
# error TGT_TYPE_STATIC_LIBRARY incorrectly not defined
|
|
#endif
|
|
#ifdef TGT_TYPE_EXECUTABLE
|
|
# error TGT_TYPE_EXECUTABLE incorrectly defined
|
|
#endif
|
|
int main(void) { return 0; }
|