PLATFORM_ID vs. WIN32 vs. CMAKE_SYSTEM_NAME

The WIN32, APPLE, UNIX, etc. variables are “soft” deprecated due to this. We’ll never actually get them removed in the wider ecosystem, so they mean what they mean with all the conflations and ambiguities they come with. CMAKE_SYSTEM_NAME is what I’d use in CMake code, PLATFORM_ID is needed in generator expressions. A bit unfortunate about the naming difference if there isn’t some other difference, but I guess that needs documented if so?

1 Like