Path: blob/main/sysutils/cpu-x/files/patch-src_CMakeLists.txt
20805 views
--- src/CMakeLists.txt.orig 2022-11-12 17:27:40 UTC1+++ src/CMakeLists.txt2@@ -23,7 +23,13 @@ endif(WITH_GTK)34# NCurses5if(WITH_NCURSES)6- pkg_check_modules(NCURSES ncursesw)7+ # Assume ncurses from the base on FreeBSD8+ if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")9+ set(NCURSES_FOUND 1)10+ set(NCURSES_LIBRARIES "-l:libncursesw.so")11+ else()12+ pkg_check_modules(NCURSES ncursesw)13+ endif()14if(NCURSES_FOUND)15include_directories(${NCURSES_INCLUDE_DIRS})16link_directories(${NCURSES_LIBRARY_DIRS})17@@ -37,7 +43,7 @@ endif(WITH_NCURSES)1819# Gettext20if(Intl_FOUND)21- include_directories(${CMAKE_BINARY_DIR}/po)22+ include_directories(${Intl_INCLUDE_DIRS})23endif(Intl_FOUND)2425# Libcpuid262728