aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-05 18:18:12 +0200
committerEgor Tensin <egor@tensin.name>2026-06-05 18:18:12 +0200
commit7543163a4da54f7b9ca9813fc425baebdcaa2da9 (patch)
tree94c4eba7fbd72c4f272895e1d9536a7884cfb5da /utils
parentuse regular `throw` instead of the Boost function (diff)
downloadwinapi-debug-7543163a4da54f7b9ca9813fc425baebdcaa2da9.tar.gz
winapi-debug-7543163a4da54f7b9ca9813fc425baebdcaa2da9.zip
upgrade to std::filesystem
Diffstat (limited to '')
-rw-r--r--utils/CMakeLists.txt4
-rw-r--r--utils/command_line.hpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt
index 9952377..ce0ec07 100644
--- a/utils/CMakeLists.txt
+++ b/utils/CMakeLists.txt
@@ -1,9 +1,9 @@
-find_package(Boost CONFIG REQUIRED COMPONENTS filesystem program_options)
+find_package(Boost CONFIG REQUIRED COMPONENTS program_options)
function(add_util name src)
add_executable("${name}" ${src})
target_link_libraries("${name}" PRIVATE winapi_debug)
- target_link_libraries("${name}" PRIVATE Boost::disable_autolinking Boost::filesystem Boost::program_options)
+ target_link_libraries("${name}" PRIVATE Boost::disable_autolinking Boost::program_options)
install(TARGETS "${name}" RUNTIME DESTINATION bin)
if(MSVC)
install(FILES "$<TARGET_PDB_FILE:${name}>" DESTINATION bin OPTIONAL)
diff --git a/utils/command_line.hpp b/utils/command_line.hpp
index 7537d51..8f4b949 100644
--- a/utils/command_line.hpp
+++ b/utils/command_line.hpp
@@ -5,10 +5,10 @@
#pragma once
-#include <boost/filesystem.hpp>
#include <boost/program_options.hpp>
#include <exception>
+#include <filesystem>
#include <iostream>
#include <ostream>
#include <string>
@@ -54,7 +54,7 @@ protected:
private:
static std::string extract_filename(char* path) {
- return boost::filesystem::path{path}.filename().string();
+ return std::filesystem::path{path}.filename().string();
}
const std::string prog_name;