diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-07 13:53:49 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-07 17:17:39 +0300 |
commit | 404044e84c3af41601f56016b7fb4447cb04c5ab (patch) | |
tree | c05687d76743df63ab6999db8ecd1ede65a92cf9 /cmake/examples/boost | |
parent | Travis: build cmake/examples/boost (diff) | |
download | cmake-common-404044e84c3af41601f56016b7fb4447cb04c5ab.tar.gz cmake-common-404044e84c3af41601f56016b7fb4447cb04c5ab.zip |
cmake/examples: fix boost/
Diffstat (limited to '')
-rw-r--r-- | cmake/examples/boost/foo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 <iostream> -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; } |