diff --git a/CMakeLists.txt b/CMakeLists.txt index 469a141a2..eec19c7d0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -517,7 +517,7 @@ if (BZIP2_FOUND) if (PC_BZIP2_FOUND) list(APPEND PKGCONFIG_REQUIRES_PRIVATE "bzip2") else () - list(APPEND PKGCONFIG_LIBS_PRIVATE "-lbz2") + list(APPEND PKGCONFIG_REQUIRES_PRIVATE "bzip2") endif () endif () if (PNG_FOUND)