aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cmake/examples
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-01-07 13:53:49 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-01-07 17:17:39 +0300
commit404044e84c3af41601f56016b7fb4447cb04c5ab (patch)
treec05687d76743df63ab6999db8ecd1ede65a92cf9 /cmake/examples
parentTravis: build cmake/examples/boost (diff)
downloadcmake-common-404044e84c3af41601f56016b7fb4447cb04c5ab.tar.gz
cmake-common-404044e84c3af41601f56016b7fb4447cb04c5ab.zip
cmake/examples: fix boost/
Diffstat (limited to 'cmake/examples')
-rw-r--r--cmake/examples/boost/foo.cpp4
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;
}