1
0
Fork 0

Use REQUIRED with find_library where appropriate

This commit is contained in:
Ilya Fedin 2022-01-11 22:56:58 +04:00 committed by John Preston
parent 289a002b6d
commit e5e31c6101
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ else()
INTERFACE INTERFACE
/usr/local/include/opus /usr/local/include/opus
) )
find_library(OPUS_LIBRARY libopus.a) find_library(OPUS_LIBRARY libopus.a REQUIRED)
set_target_properties(external_opus PROPERTIES set_target_properties(external_opus PROPERTIES
IMPORTED_LOCATION "${OPUS_LIBRARY}" IMPORTED_LOCATION "${OPUS_LIBRARY}"
) )

View file

@ -40,7 +40,7 @@ else()
INTERFACE INTERFACE
/usr/local/include /usr/local/include
) )
find_library(RNNOISE_LIBRARY librnnoise.a) find_library(RNNOISE_LIBRARY librnnoise.a REQUIRED)
set_target_properties(external_rnnoise PROPERTIES set_target_properties(external_rnnoise PROPERTIES
IMPORTED_LOCATION "${RNNOISE_LIBRARY}" IMPORTED_LOCATION "${RNNOISE_LIBRARY}"
) )