I have a part of code in CMake. It should copy files from source
folder to a destination
folder and I want it to be silent.
According to the documentation set (CMAKE_INSTALL_MESSAGE NEVER)
should make it quiet. But it doesn't.
This is the code:
# Silence installation messages
set (SAVE_CMAKE_INSTALL_MESSAGE ${CMAKE_INSTALL_MESSAGE}) # Saving the state
set (CMAKE_INSTALL_MESSAGE NEVER)
message("CMAKE_INSTALL_MESSAGE = ${CMAKE_INSTALL_MESSAGE}") # NEVER
file(INSTALL ${SOURCE} DESTINATION ${DEST} USE_SOURCE_PERMISSIONS)
set (CMAKE_INSTALL_MESSAGE ${SAVE_CMAKE_INSTALL_MESSAGE}) # Restitute
message("CMAKE_INSTALL_MESSAGE = ${CMAKE_INSTALL_MESSAGE}") # <empty>
It is not silent, it prints out every file with
-- Installing: /some/destination/path
and -- Up-to-date: /some/destination/path
Any ideas how to silence that function?