[Debichem-devel] Bug#1113580: toppic: FTBFS with CMake 4

Santiago Vila sanvila at debian.org
Thu Nov 13 12:29:40 GMT 2025


Hi.

I've checked that using this in CMakeLists.txt:

cmake_minimum_required(VERSION 3.5)

makes the CMake 4 issue to go away. However, the build
still fails with this error message:

[...]/toppic/src/common/util/file_util.cpp: In function 'void toppic::file_util::copyFile(const std::string&, const std::string&, bool)':
[...]/toppic/src/common/util/file_util.cpp:165:43: error: 'fs::copy_option' has not been declared; did you mean 'fs::copy_options'?
  165 |     fs::copy_file(from_path, to_path, fs::copy_option::overwrite_if_exists);
      |                                           ^~~~~~~~~~~
[...]/toppic/src/common/util/file_util.cpp:168:43: error: 'fs::copy_option' has not been declared; did you mean 'fs::copy_options'?
  168 |     fs::copy_file(from_path, to_path, fs::copy_option::fail_if_exists);
      |                                           ^~~~~~~~~~~


Maybe upgrading to 1.8.0 fixes this but I have not gone so far
(hope you can take care of that).

Thanks.



More information about the Debichem-devel mailing list