remove now redundant workaround in katie_check_defined()

compiled source is not executed to check its return value since
check_cxx_source_compiles() is used now

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2020-12-03 18:31:39 +00:00
parent 0df4ee65de
commit aa849d0b30

View file

@ -19,12 +19,8 @@ function(KATIE_CHECK_DEFINED FORDEFINITION FROMHEADER)
#include <stdio.h>
${includedata}
static bool willprint = true; // bypass compiler/linker optimizations
int main() {
willprint = false;
if (willprint) {
return printf(\"%p\", &${FORDEFINITION});
}
printf(\"%p\", &${FORDEFINITION});
return 0;
}
"