### ImageMagick version

7.1.1-18 Q16-HDRI aarch64 21582

### Operating system

MacOS

### Operating system, version and so on

7.1.1-18 Q16-HDRI aarch64 21582

### Description

I'm getting this error when I compile my C++ project using Xcode. 

```
Error:

/* whether HDRI is enable */
#if !defined(MAGICKCORE_HDRI_ENABLE)
# error "you should set MAGICKCORE_HDRI_ENABLE"
#endif
```

I've tried following these instructions:

[brew edit imagemagick](https://github.com/ImageMagick/ImageMagick/blob/main/Install-mac.txt)

I tried disabling HDRI by setting this line to:

`<configure name="PCFLAGS" value="-Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_CHANNEL_MASK_DEPTH=32 -DMAGICKCORE_QUANTUM_DEPTH=16"/>
`

What is the correct way to get ImageMagick to work on a Mac?  

Thanks,

### Steps to Reproduce

- brew install imagemagick
- add #include <Magick++.h> to a .cpp file.
- Try to compile an Xcode MacOS C++ command line project.

### Images

_No response_
Can't use ImageMagick installed from HomeBrew in C++ project.
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : Can't use ImageMagick installed from HomeBrew in C++ project.
Issue date:

--- start body ---
### ImageMagick version

7.1.1-18 Q16-HDRI aarch64 21582

### Operating system

MacOS

### Operating system, version and so on

7.1.1-18 Q16-HDRI aarch64 21582

### Description

I'm getting this error when I compile my C++ project using Xcode. 

```
Error:

/* whether HDRI is enable */
#if !defined(MAGICKCORE_HDRI_ENABLE)
# error "you should set MAGICKCORE_HDRI_ENABLE"
#endif
```

I've tried following these instructions:

[brew edit imagemagick](https://github.com/ImageMagick/ImageMagick/blob/main/Install-mac.txt)

I tried disabling HDRI by setting this line to:

`<configure name="PCFLAGS" value="-Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_CHANNEL_MASK_DEPTH=32 -DMAGICKCORE_QUANTUM_DEPTH=16"/>
`

What is the correct way to get ImageMagick to work on a Mac?  

Thanks,

### Steps to Reproduce

- brew install imagemagick
- add #include <Magick++.h> to a .cpp file.
- Try to compile an Xcode MacOS C++ command line project.

### Images

_No response_
--- end body ---
