add set(FILE_READER_BUFFER_SIZE 4096 CACHE STRING "" FORCE) to your CMakeLists.txt before adding the lib build with cmake -B build -DFILE_READER_BUFFER_SIZE=4096 ...