Fixed portability issue, now it works on msys2 windows build as well
This commit is contained in:
parent
9f8bdd3c3e
commit
b4b5586efd
@ -20,6 +20,7 @@
|
|||||||
#ifndef PYTHON_MODULE
|
#ifndef PYTHON_MODULE
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
|
#include <boost/filesystem/convenience.hpp>
|
||||||
#include <boost/program_options.hpp>
|
#include <boost/program_options.hpp>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
@ -102,7 +103,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
if (vm.count("help") || argc == 1) {
|
if (vm.count("help") || argc == 1) {
|
||||||
help:
|
help:
|
||||||
std::cout << basename(argv[0])
|
std::cout << boost::filesystem::basename(argv[0])
|
||||||
<< " -- Next Generation Place and Route (git "
|
<< " -- Next Generation Place and Route (git "
|
||||||
"sha1 " GIT_COMMIT_HASH_STR ")\n";
|
"sha1 " GIT_COMMIT_HASH_STR ")\n";
|
||||||
std::cout << "\n";
|
std::cout << "\n";
|
||||||
@ -111,7 +112,7 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (vm.count("version")) {
|
if (vm.count("version")) {
|
||||||
std::cout << basename(argv[0])
|
std::cout << boost::filesystem::basename(argv[0])
|
||||||
<< " -- Next Generation Place and Route (git "
|
<< " -- Next Generation Place and Route (git "
|
||||||
"sha1 " GIT_COMMIT_HASH_STR ")\n";
|
"sha1 " GIT_COMMIT_HASH_STR ")\n";
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user