How to set the parameters of cmake_ranlib?

For binary consistency, parameters ‘-D’ need to be set to cmake_ranlib, I tried the following but it didn’t work

SET(CMAKE_C_COMPILER_RANLIB “<CMAKE_RANLIB> -D ”)
SET(CMAKE_CXX_COMPILER_RANLIB “<CMAKE_RANLIB> -D ”)

Does it work if you add to CMAKE_STATIC_LINKER_FLAGS instead?

thank you for ask, i tried this worked, CMAKE_STATIC_LINKER_FLAGS can be tried letter
SET(CMAKE_C_ARCHIVE_FINISH “<CMAKE_RANLIB> -D ”)
SET(CMAKE_CXX_ARCHIVE_FINISH “<CMAKE_RANLIB> -D ”)