cmCoreTryCompile: Simplify TryCompileCode return type The return value is only used as a boolean, so use `bool`.