Skip to content

Commit

Permalink
fixed demo, unit-test target complie on ubuntu20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
fasiondog committed Nov 30, 2021
1 parent 8389773 commit df608c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hikyuu_cpp/demo/demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ int main(int argc, char* argv[]) {
std::this_thread::sleep_for(std::chrono::seconds(1));
}

#if defined(_WIN32)
SetConsoleOutputCP(old_cp);
#endif
return 0;
}
1 change: 1 addition & 0 deletions hikyuu_cpp/unit_test/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ target("unit-test")
add_links("boost_unit_test_framework")
add_links("boost_filesystem")
add_links("boost_serialization")
add_links("sqlite3")
add_shflags("-Wl,-rpath=$ORIGIN", "-Wl,-rpath=$ORIGIN/../lib")
end

Expand Down

0 comments on commit df608c4

Please sign in to comment.