From 404044e84c3af41601f56016b7fb4447cb04c5ab Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 7 Jan 2020 13:53:49 +0300 Subject: cmake/examples: fix boost/ --- cmake/examples/boost/foo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmake/examples/boost') diff --git a/cmake/examples/boost/foo.cpp b/cmake/examples/boost/foo.cpp index 258115b..b5db3b5 100644 --- a/cmake/examples/boost/foo.cpp +++ b/cmake/examples/boost/foo.cpp @@ -2,7 +2,7 @@ #include -int main() { - std::cout << boost::filesystem::path{argv0}.absolute().string(); << "\n"; +int main(int argc, char* argv[]) { + std::cout << boost::filesystem::absolute(boost::filesystem::path{argv[0]}).string() << "\n"; return 0; } -- cgit v1.2.3