warning: switch -mcpu=cortex-a7 conflicts with -march=armv7-a switch

I am building kodi on Arch ARM for Raspberry Pi2 (armv7h) with the following this cmake stanza. It works but it throws tons of warnings about conflicting switches. For example:

Code:
/scratch-nfs/PKGBUILDs/alarm/kodi-rbp/src/xbmc-17.3-Krypton/xbmc/profiles/ProfilesManager.cpp:1:0: warning: switch -mcpu=cortex-a7 conflicts with -march=armv7-a switch
...
/scratch-nfs/PKGBUILDs/alarm/kodi-rbp/src/xbmc-17.3-Krypton/xbmc/interfaces/legacy/WindowXML.cpp:1:0: warning: switch -mcpu=cortex-a7 conflicts with -march=armv7-a switch

The CFLAGS and CXXFLAGS are the distro default. Should I adjust the -DWITH_CPU flag to something else? The resulting package should run on both RPi2 and RPi3. Thanks.

Code:
export CFLAGS="-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
   export CXXFLAGS="-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"

  cmake -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=/usr/lib \
    -DCMAKE_PREFIX_PATH=/opt/vc \
    -DCORE_SYSTEM_NAME=rbpi \
    -DWITH_CPU=cortex-a7 \
    -DENABLE_EVENTCLIENTS=ON \
    -DENABLE_OPENGL=OFF \
    -DENABLE_X11=OFF \
    -DENABLE_VAAPI=OFF \
    -DENABLE_VDPAU=OFF \
    -DLIRC_DEVICE=/run/lirc/lircd \
    ../xbmc-17.3-Krypton/project/cmake

  make
  make preinstall