From 4a13e39da5a7f79a3d4db6c54fef040e08ab6110 Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 12 Dec 2021 06:10:51 -0500 Subject: [PATCH] [CMake] everything wants LIBRT #2453 thanks Kristoffer Carlsson ! --- CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c5ed5c171..b7f723f81 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -139,7 +139,7 @@ find_package(Threads) set_package_properties(Threads PROPERTIES TYPE REQUIRED) # platform-specific logics if(WIN32) - set(LIBRT_LIBRARIES wsock32 ws2_32 Secur32) + set(LIBRT wsock32 ws2_32 Secur32) elseif(NOT APPLE) find_library(LIBM m REQUIRED) find_library(LIBRT rt REQUIRED) @@ -270,7 +270,7 @@ target_link_libraries(notcurses-core "${gpm}" PUBLIC Threads::Threads - "${LIBRT_LIBRARIES}" + "${LIBRT}" ) target_link_libraries(notcurses-core-static PRIVATE @@ -281,7 +281,7 @@ target_link_libraries(notcurses-core-static "${unistring}" "${gpm}" Threads::Threads - "${LIBRT_LIBRARIES}" + "${LIBRT}" ) target_link_directories(notcurses-core PRIVATE @@ -599,6 +599,7 @@ target_include_directories(notcurses-info target_link_libraries(notcurses-info PRIVATE notcurses + "${LIBRT}" ) ############################################################################ @@ -616,6 +617,7 @@ target_include_directories(notcurses-input target_link_libraries(notcurses-input PRIVATE notcurses++ + "${LIBRT}" ) ############################################################################ @@ -633,6 +635,7 @@ target_include_directories(nctetris target_link_libraries(nctetris PRIVATE notcurses++ + "${LIBRT}" ) endif() @@ -678,6 +681,7 @@ target_include_directories(ncneofetch target_link_libraries(ncneofetch PRIVATE notcurses + "${LIBRT}" ) # documentation source, processed by pandoc into XHTML and man pages. declare