mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
[CMake] everything wants LIBRT #2453
thanks Kristoffer Carlsson <kcarlsson89@gmail.com>!
This commit is contained in:
parent
d25c9a297c
commit
4a13e39da5
@ -139,7 +139,7 @@ find_package(Threads)
|
|||||||
set_package_properties(Threads PROPERTIES TYPE REQUIRED)
|
set_package_properties(Threads PROPERTIES TYPE REQUIRED)
|
||||||
# platform-specific logics
|
# platform-specific logics
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(LIBRT_LIBRARIES wsock32 ws2_32 Secur32)
|
set(LIBRT wsock32 ws2_32 Secur32)
|
||||||
elseif(NOT APPLE)
|
elseif(NOT APPLE)
|
||||||
find_library(LIBM m REQUIRED)
|
find_library(LIBM m REQUIRED)
|
||||||
find_library(LIBRT rt REQUIRED)
|
find_library(LIBRT rt REQUIRED)
|
||||||
@ -270,7 +270,7 @@ target_link_libraries(notcurses-core
|
|||||||
"${gpm}"
|
"${gpm}"
|
||||||
PUBLIC
|
PUBLIC
|
||||||
Threads::Threads
|
Threads::Threads
|
||||||
"${LIBRT_LIBRARIES}"
|
"${LIBRT}"
|
||||||
)
|
)
|
||||||
target_link_libraries(notcurses-core-static
|
target_link_libraries(notcurses-core-static
|
||||||
PRIVATE
|
PRIVATE
|
||||||
@ -281,7 +281,7 @@ target_link_libraries(notcurses-core-static
|
|||||||
"${unistring}"
|
"${unistring}"
|
||||||
"${gpm}"
|
"${gpm}"
|
||||||
Threads::Threads
|
Threads::Threads
|
||||||
"${LIBRT_LIBRARIES}"
|
"${LIBRT}"
|
||||||
)
|
)
|
||||||
target_link_directories(notcurses-core
|
target_link_directories(notcurses-core
|
||||||
PRIVATE
|
PRIVATE
|
||||||
@ -599,6 +599,7 @@ target_include_directories(notcurses-info
|
|||||||
target_link_libraries(notcurses-info
|
target_link_libraries(notcurses-info
|
||||||
PRIVATE
|
PRIVATE
|
||||||
notcurses
|
notcurses
|
||||||
|
"${LIBRT}"
|
||||||
)
|
)
|
||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
@ -616,6 +617,7 @@ target_include_directories(notcurses-input
|
|||||||
target_link_libraries(notcurses-input
|
target_link_libraries(notcurses-input
|
||||||
PRIVATE
|
PRIVATE
|
||||||
notcurses++
|
notcurses++
|
||||||
|
"${LIBRT}"
|
||||||
)
|
)
|
||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
@ -633,6 +635,7 @@ target_include_directories(nctetris
|
|||||||
target_link_libraries(nctetris
|
target_link_libraries(nctetris
|
||||||
PRIVATE
|
PRIVATE
|
||||||
notcurses++
|
notcurses++
|
||||||
|
"${LIBRT}"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -678,6 +681,7 @@ target_include_directories(ncneofetch
|
|||||||
target_link_libraries(ncneofetch
|
target_link_libraries(ncneofetch
|
||||||
PRIVATE
|
PRIVATE
|
||||||
notcurses
|
notcurses
|
||||||
|
"${LIBRT}"
|
||||||
)
|
)
|
||||||
|
|
||||||
# documentation source, processed by pandoc into XHTML and man pages. declare
|
# documentation source, processed by pandoc into XHTML and man pages. declare
|
||||||
|
Loading…
x
Reference in New Issue
Block a user