cmake: fix macros