I think will be good idea to introduce CMake variable similar to LLVM_INSTALL_TOOLCHAIN_ONLY which will allow to control headers installation.
And that would prevent headers from being installed ?
See http://llvm.org/klaus/lldb/blob/master/cmake/modules/LLDBConfig.cmake as example.
Git commit 8c5c811ecf19a776f45300cc6d253d19a8ade5ed by Sergio Martins. Committed on 13/10/2016 at 21:32. Pushed by smartins into branch 'master'. Allow to suppress header installation Added cmake option CLAZY_INSTALL_NO_HEADERS M +23 -21 CMakeLists.txt http://commits.kde.org/clazy/8c5c811ecf19a776f45300cc6d253d19a8ade5ed