mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
CMake: link zlib into notcurses-core #1821
This commit is contained in:
parent
4de3101c20
commit
5a0e2a2ae5
@ -182,6 +182,7 @@ target_include_directories(notcurses-core
|
||||
"${CMAKE_REQUIRED_INCLUDES}"
|
||||
"${PROJECT_BINARY_DIR}/include"
|
||||
"${TERMINFO_INCLUDE_DIRS}"
|
||||
"${ZLIB_INCLUDE_DIRS}"
|
||||
)
|
||||
target_include_directories(notcurses-core-static
|
||||
PRIVATE
|
||||
@ -190,9 +191,11 @@ target_include_directories(notcurses-core-static
|
||||
"${CMAKE_REQUIRED_INCLUDES}"
|
||||
"${PROJECT_BINARY_DIR}/include"
|
||||
"${TERMINFO_STATIC_INCLUDE_DIRS}"
|
||||
"${ZLIB_STATIC_INCLUDE_DIRS}"
|
||||
)
|
||||
target_link_libraries(notcurses-core
|
||||
PRIVATE
|
||||
"${ZLIB_LIBRARIES}"
|
||||
"${TERMINFO_LIBRARIES}"
|
||||
"${LIBM}"
|
||||
"${LIBRT_LIBRARIES}"
|
||||
@ -202,6 +205,7 @@ target_link_libraries(notcurses-core
|
||||
)
|
||||
target_link_libraries(notcurses-core-static
|
||||
PRIVATE
|
||||
"${ZLIB_STATIC_LIBRARIES}"
|
||||
"${TERMINFO_STATIC_LIBRARIES}"
|
||||
"${LIBM}"
|
||||
"${LIBRT_LIBRARIES}"
|
||||
@ -212,10 +216,12 @@ target_link_libraries(notcurses-core-static
|
||||
target_link_directories(notcurses-core
|
||||
PRIVATE
|
||||
"${TERMINFO_LIBRARY_DIRS}"
|
||||
"${ZLIB_LIBRARY_DIRS}"
|
||||
)
|
||||
target_link_directories(notcurses-core-static
|
||||
PRIVATE
|
||||
"${TERMINFO_STATIC_LIBRARY_DIRS}"
|
||||
"${ZLIB_STATIC_LIBRARY_DIRS}"
|
||||
)
|
||||
if(${USE_QRCODEGEN})
|
||||
target_link_libraries(notcurses-core PRIVATE qrcodegen)
|
||||
|
@ -231,7 +231,7 @@ grow_esc_table(tinfo* ti, const char* tstr, escape_e esc,
|
||||
fprintf(stderr, "Can't add escape %d to full table\n", esc);
|
||||
return -1;
|
||||
}
|
||||
if(ti->escindices[esc] > 0){
|
||||
if(get_escape(ti, esc)){
|
||||
fprintf(stderr, "Already defined escape %d (%s)\n",
|
||||
esc, get_escape(ti, esc));
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user