summaryrefslogtreecommitdiff
path: root/dev-lang/ispc/files/ispc-1.18.0-curses-cmake.patch
blob: 127b7095a778de4c654e03c7ed0c481173daad6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -530,11 +530,8 @@ else()
     else()
         find_package(Curses REQUIRED)
         find_package(ZLIB REQUIRED)
-        if (CURSES_EXTRA_LIBRARY)
-            # this contains the tinfo library, if found
-            target_link_libraries(${PROJECT_NAME} ${CURSES_EXTRA_LIBRARY})
-        endif()
-        target_link_libraries(${PROJECT_NAME} pthread ${ZLIB_LIBRARIES} ${CURSES_CURSES_LIBRARY})
+        set(CURSES_NEED_NCURSES ON)
+        target_link_libraries(${PROJECT_NAME} pthread ${ZLIB_LIBRARIES} ${CURSES_LIBRARIES})
     endif()
 endif()