aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-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;
}