Commit | Line | Data |
---|---|---|
bc97f0d8 FF |
1 | diff -u -r ../x265_2.2/source/CMakeLists.txt ./source/CMakeLists.txt |
2 | --- ../x265_2.2/source/CMakeLists.txt 2016-12-23 00:57:39.000000000 -0500 | |
3 | +++ ./source/CMakeLists.txt 2017-01-03 18:42:19.823674722 -0500 | |
4 | @@ -80,7 +80,10 @@ | |
5 | endif() | |
6 | ||
7 | if(UNIX) | |
8 | - list(APPEND PLATFORM_LIBS pthread) | |
9 | + find_library(LIBPTHREAD pthread) | |
10 | + if(LIBPTHREAD) | |
11 | + list(APPEND PLATFORM_LIBS pthread) | |
12 | + endif() | |
13 | find_library(LIBRT rt) | |
14 | if(LIBRT) | |
15 | list(APPEND PLATFORM_LIBS rt) |