Skip to content

Commit dba0672

Browse files
committed
CMake: remove the unused option ENABLE_CPUUSAGE_PERFLIB
1 parent 3ed6acf commit dba0672

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ cmake_dependent_option(ENABLE_ELF "Enable libelf" ON "LINUX OR ANDROID OR Dragon
8383
cmake_dependent_option(ENABLE_THREADS "Enable multithreading" ON "Threads_FOUND" OFF)
8484
cmake_dependent_option(ENABLE_LIBZFS "Enable libzfs" ON "LINUX OR FreeBSD OR SunOS" OFF)
8585
cmake_dependent_option(ENABLE_PCIACCESS "Enable libpciaccess" ON "NetBSD OR OpenBSD" OFF)
86-
cmake_dependent_option(ENABLE_CPUUSAGE_PERFLIB "Use perflib (Processor Information) to calculate CPU usage (used by task manager) instead of CPU times (used by all other *nix platforms)" OFF "WIN32" OFF)
8786

8887
option(ENABLE_SYSTEM_YYJSON "Use system provided (instead of fastfetch embedded) yyjson library" OFF)
8988
option(ENABLE_ASAN "Build fastfetch with ASAN (address sanitizer)" OFF)
@@ -1232,10 +1231,6 @@ add_library(libfastfetch OBJECT
12321231
${LIBFASTFETCH_SRC}
12331232
)
12341233

1235-
if(ENABLE_CPUUSAGE_PERFLIB)
1236-
target_compile_definitions(libfastfetch PUBLIC FF_ENABLE_CPUUSAGE_PERFLIB)
1237-
endif()
1238-
12391234
if(yyjson_FOUND)
12401235
target_compile_definitions(libfastfetch PUBLIC FF_USE_SYSTEM_YYJSON)
12411236
target_link_libraries(libfastfetch PUBLIC yyjson::yyjson)

0 commit comments

Comments
 (0)