CMake: ENABLE_GLIB vs. WITH_GLIB
Submitted by Roland Hieber
Assigned to poppler-bugs
Link to original bug (#103590)
Description
Created attachment 135254 CMake: remove ENABLE_GLIB in favour of WITH_GLIB from macro_optional_find_package(GLIB)
When configuring poppler 0.60.1 with ccmake, I can see both ENABLE_GLIB and (further down) WITH_GLIB. As I understand the code, both of them need to be set for GLIB to be used. Since WITH_GLIB is the guard used in macro_optional_find_package(GLIB)
, I think that ENABLE_GLIB
can be spared. See the attached patch, which works for me.
Patch 135254, "CMake: remove ENABLE_GLIB in favour of WITH_GLIB from macro_optional_find_package(GLIB)":
poppler-cmake-enable-glib-vs-with-glib.patch