What are you trying to achieve?
If you are trying to link system libraries then just use target_link_libraries like so.
target_link_libraries(foobar PRIVATE
# DX12 libraries
d3d12.lib
dxgi.lib
dxguid.lib
)
This will properly handle dependencies.