diff options
author | FormerLurker <hochgebe@gmail.com> | 2020-05-14 18:16:43 +0300 |
---|---|---|
committer | FormerLurker <hochgebe@gmail.com> | 2020-05-14 18:16:43 +0300 |
commit | efb71a1cb55770d0d79de2ce783612737d59821a (patch) | |
tree | 73dabe71531658fac50ad027c6fb3a2524019a5b /ArcWelderConsole | |
parent | 2e42c6c32cb29615c6c24df23d232d65f7a325f5 (diff) |
Fix cout buffering issue, update CMake files.
Diffstat (limited to 'ArcWelderConsole')
-rw-r--r-- | ArcWelderConsole/ArcWelderConsole.cpp | 3 | ||||
-rw-r--r-- | ArcWelderConsole/CMakeLists.txt | 8 |
2 files changed, 8 insertions, 3 deletions
diff --git a/ArcWelderConsole/ArcWelderConsole.cpp b/ArcWelderConsole/ArcWelderConsole.cpp index 6ddf21e..b263a4a 100644 --- a/ArcWelderConsole/ArcWelderConsole.cpp +++ b/ArcWelderConsole/ArcWelderConsole.cpp @@ -163,7 +163,8 @@ int main(int argc, char* argv[]) static bool on_progress(arc_welder_progress progress) { - std::cout << progress.str() << "\n"; + std::cout << progress.str() << std::endl; + std::cout.flush(); return true; } diff --git a/ArcWelderConsole/CMakeLists.txt b/ArcWelderConsole/CMakeLists.txt index 721e8d9..2626f3c 100644 --- a/ArcWelderConsole/CMakeLists.txt +++ b/ArcWelderConsole/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required (VERSION "3.16") +cmake_minimum_required (VERSION "3.13") project(ArcWelderConsole C CXX) @@ -15,7 +15,11 @@ include(sourcelist.cmake) # Add an executable our ArcWelderConsoleSources variable from our sourcelist file add_executable(${PROJECT_NAME} ${ArcWelderConsoleSources}) -install(TARGETS ${PROJECT_NAME}) +install( + TARGETS ${PROJECT_NAME} + DESTINATION bin +) + # specify linking to the GcodeProcessorLib and ArcWelder libraries target_link_libraries(${PROJECT_NAME} GcodeProcessorLib ArcWelder TCLAP) |