CMake specifying dependency as required

Back

find_package(SomePackage REQUIRED)

Example

find_package(libyaml REQUIRED)

Further Reading