CMake target_link_library(something private LIB) The thing above is only applicable for shared libraries