Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/sysutils/cpu-x/files/patch-src_CMakeLists.txt
20805 views
1
--- src/CMakeLists.txt.orig 2022-11-12 17:27:40 UTC
2
+++ src/CMakeLists.txt
3
@@ -23,7 +23,13 @@ endif(WITH_GTK)
4
5
# NCurses
6
if(WITH_NCURSES)
7
- pkg_check_modules(NCURSES ncursesw)
8
+ # Assume ncurses from the base on FreeBSD
9
+ if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
10
+ set(NCURSES_FOUND 1)
11
+ set(NCURSES_LIBRARIES "-l:libncursesw.so")
12
+ else()
13
+ pkg_check_modules(NCURSES ncursesw)
14
+ endif()
15
if(NCURSES_FOUND)
16
include_directories(${NCURSES_INCLUDE_DIRS})
17
link_directories(${NCURSES_LIBRARY_DIRS})
18
@@ -37,7 +43,7 @@ endif(WITH_NCURSES)
19
20
# Gettext
21
if(Intl_FOUND)
22
- include_directories(${CMAKE_BINARY_DIR}/po)
23
+ include_directories(${Intl_INCLUDE_DIRS})
24
endif(Intl_FOUND)
25
26
# Libcpuid
27
28