The package isal provides CMake targets: find_package(unofficial-isal CONFIG REQUIRED) target_link_libraries(main unofficial::isal::isal)