diff --git a/CMakeModules/oe_unix.cmake b/CMakeModules/oe_unix.cmake index 38e80e11a7..2acbca2525 100644 --- a/CMakeModules/oe_unix.cmake +++ b/CMakeModules/oe_unix.cmake @@ -7,5 +7,5 @@ IF(UNIX AND NOT ANDROID) # Some Unicies need explicit linkage to the Math library or the build fails. FIND_LIBRARY(MATH_LIBRARY m) # for ptheads in linux - find_library(Threads) + find_package(Threads REQUIRED) ENDIF(UNIX AND NOT ANDROID)