#Jdk 18 not recognized as a command generator#
4 and above add_custom_command recognizes generator expressions to refer to target locations anywhere in the command. We’re using CMake’s Borland generator here, because bcc32c is compatible with bcc32’s command-line flags. Use the cmake_policy command to set the policy and suppress this warning.
I had just installed cmake and assumed it would be equipped with its compiler, but maybe it needs to be configured before it can be used? CMake supports RAD Studio’s Clang-enhanced compilers, and for Win32 uses the new Clang-enhanced driver, bcc32x.scanning through the errors, they appeared to be undefined, syntax errors, missing parameters for function calls, etc
The older way of doing this is to use add_compile_options and explicitly state the option. This lets CMake identify and verify the compilers it needs, and cache the results.