blob: 55c22d6a9f188f26d646e4942574932dc4b6c9de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
if(NOT APPLE)
find_library(LIBRT_LIBRARIES rt)
mark_as_advanced(LIBRT_LIBRARIES)
if(NOT LIBRT_LIBRARIES)
message(FATAL_ERROR "Could not find librt")
endif()
else()
set(LIBRT_LIBRARIES "")
endif()
find_package(Threads REQUIRED)
find_library(LIBM_LIBRARIES m)
mark_as_advanced(LIBM_LIBRARIES)
if(NOT LIBM_LIBRARIES)
message(FATAL_ERROR "Could not find libm")
endif()
|