add_custom_command with generator config commands

Unfortunately that didnt help. this is the current as variable and custom command

SET( _PDB_COPY_CMD 
	${CMAKE_COMMAND} -E
	copy_if_different 
	"$<TARGET_FILE_DIR:bif>/$<TARGET_FILE_BASE_NAME:bif>.pdb"
	"$<TARGET_FILE_DIR:App>/imageformats"
	)
add_custom_command( TARGET App POST_BUILD 
    COMMAND $<$<CONFIG:Debug,RelWithDebInfo>:${_PDB_COPY_CMD} >
    DEPENDS bif
    COMMENT "ADDING BIF Image Format Shared Library PDB file Library"
    )

and this is the generated output from the vcxproj

App/MediaManager.vcxproj:""$"&lt;1:C:\Program Files\CMake\bin\cmake.exe" -E copy_if_different "D:/Visual Studio/sb/github/scottaronbloom/MediaManager/build/SABUtils/bif/Debug/bif.pdb" "D:/Visual Studio/sb/github/scottaronbloom/MediaManager/build/App/Debug/imageformats" &gt;
App/MediaManager.vcxproj:""$"&lt;0:C:\Program Files\CMake\bin\cmake.exe" -E copy_if_different "D:/Visual Studio/sb/github/scottaronbloom/MediaManager/build/SABUtils/bif/Release/bif.pdb" "D:/Visual Studio/sb/github/scottaronbloom/MediaManager/build/App/Release/imageformats" &gt;
App/MediaManager.vcxproj:""$"&lt;0:C:\Program Files\CMake\bin\cmake.exe" -E copy_if_different "D:/Visual Studio/sb/github/scottaronbloom/MediaManager/build/SABUtils/bif/MinSizeRel/bif.pdb" "D:/Visual Studio/sb/github/scottaronbloom/MediaManager/build/App/MinSizeRel/imageformats" &gt;
App/MediaManager.vcxproj:""$"&lt;1:C:\Program Files\CMake\bin\cmake.exe" -E copy_if_different "D:/Visual Studio/sb/github/scottaronbloom/MediaManager/build/SABUtils/bif/RelWithDebInfo/bif.pdb" "D:/Visual Studio/sb/github/scottaronbloom/MediaManager/build/App/RelWithDebInfo/imageformats" &gt;