Use REQUIRED with find_library where appropriate
This commit is contained in:
parent
289a002b6d
commit
e5e31c6101
2 changed files with 2 additions and 2 deletions
2
external/opus/CMakeLists.txt
vendored
2
external/opus/CMakeLists.txt
vendored
|
|
@ -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}"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
2
external/rnnoise/CMakeLists.txt
vendored
2
external/rnnoise/CMakeLists.txt
vendored
|
|
@ -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}"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue