CMake build error: nvcc fatal : Unknown option 'Wl,--whole-archive'

OS: centors 7
cmake: 3.12
commit: 5fc4fc53df74f276aafa5120814
cuda: 10.0

Any one have met this error ?

Use -Xlinker --whole-archive but not -Wl,--whole-arcive can remedy this error.

Looks like nvcc not support the gcc link option keywords: -Wl, but support -Xlinker