cmakedefine01 always defines the macro, so #ifdef is always true. Use #if instead.
mentioned in commit 4fc0d8af