From b5ccc9d6a269912a38ffd0d32060aaf4d033ca8e Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 12 Dec 2021 00:35:48 -0500 Subject: [PATCH] [CMake] require LIBRT wherever we require LIBM #2453 --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 46666a096..3d8e5b0ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -266,6 +266,7 @@ target_link_libraries(notcurses-core "${ZLIB_LIBRARIES}" "${TERMINFO_LIBRARIES}" "${LIBM}" + "${LIBRT}" "${unistring}" "${gpm}" PUBLIC @@ -278,6 +279,7 @@ target_link_libraries(notcurses-core-static "${ZLIB_STATIC_LIBRARIES}" "${TERMINFO_STATIC_LIBRARIES}" "${LIBM}" + "${LIBRT}" "${unistring}" "${gpm}" PUBLIC @@ -529,7 +531,7 @@ foreach(f ${POCSRCS}) "${PROJECT_BINARY_DIR}/include" ) target_link_libraries(${fe} - PRIVATE notcurses "${TERMINFO_LIBRARIES}" "${LIBM}" + PRIVATE notcurses "${TERMINFO_LIBRARIES}" "${LIBM}" "${LIBRT}" ) target_link_directories(${fe} PRIVATE "${TERMINFO_LIBRARY_DIRS}" @@ -546,7 +548,7 @@ if(${USE_CXX}) "${PROJECT_BINARY_DIR}/include" ) target_link_libraries(${fe} - PRIVATE notcurses++ "${TERMINFO_LIBRARIES}" "${LIBM}" + PRIVATE notcurses++ "${TERMINFO_LIBRARIES}" "${LIBM}" "${LIBRT}" ) target_link_directories(${fe} PRIVATE "${TERMINFO_LIBRARY_DIRS}" @@ -576,6 +578,7 @@ target_link_libraries(notcurses-demo PRIVATE notcurses ${LIBM} + ${LIBRT} Threads::Threads )