mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 11:44:53 +08:00
17 lines
298 B
CMake
17 lines
298 B
CMake
include(FindPackageHandleStandardArgs)
|
|
|
|
find_library(rt_LIBRARY rt)
|
|
|
|
find_package_handle_standard_args(rt
|
|
DEFAULT_MSG
|
|
rt_LIBRARY
|
|
)
|
|
mark_as_advanced(rt_LIBRARY)
|
|
|
|
if(rt_FOUND)
|
|
#message("lib rt FOUND!")
|
|
set(rt_LIBRARIES ${rt_LIBRARY})
|
|
else(rt_FOUND)
|
|
#message("lib rt NOT FOUND!")
|
|
endif()
|