summaryrefslogtreecommitdiff
path: root/dev-lang/ispc/files/ispc-1.19.0-curses-cmake.patch
blob: 19a19e871ee702855c1f8ab107e0e19269f6174d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -598,11 +598,8 @@ else()
         target_link_libraries(${PROJECT_NAME} pthread tinfo.a curses.a)
     else()
         find_package(Curses 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 ${CURSES_CURSES_LIBRARY})
+        set(CURSES_NEED_NCURSES ON)
+        target_link_libraries(${PROJECT_NAME} pthread ${CURSES_LIBRARIES})
     endif()
 endif()