# HG changeset patch # User František Kučera # Date 1579531719 -3600 # Node ID 698836fc65b4b7a5cdb96e8085fcc8c37e3181ab # Parent ef726975c34be7e5eff27ebc21aa8d7654237f49 parallel processing: link to librt (POSIX MQ) diff -r ef726975c34b -r 698836fc65b4 src/CMakeLists.txt --- a/src/CMakeLists.txt Mon Jan 20 13:19:23 2020 +0100 +++ b/src/CMakeLists.txt Mon Jan 20 15:48:39 2020 +0100 @@ -34,7 +34,7 @@ ) # Link libraries: -target_link_libraries(${EXECUTABLE_FILE} ${RELPIPE_LIBS_LIBRARIES} stdc++fs) +target_link_libraries(${EXECUTABLE_FILE} ${RELPIPE_LIBS_LIBRARIES} stdc++fs rt) set_property(TARGET ${EXECUTABLE_FILE} PROPERTY CXX_STANDARD 17) set_property(TARGET ${EXECUTABLE_FILE} PROPERTY INSTALL_RPATH_USE_LINK_PATH TRUE) diff -r ef726975c34b -r 698836fc65b4 src/ParallelFilesystemCommand.h --- a/src/ParallelFilesystemCommand.h Mon Jan 20 13:19:23 2020 +0100 +++ b/src/ParallelFilesystemCommand.h Mon Jan 20 15:48:39 2020 +0100 @@ -16,6 +16,8 @@ */ #pragma once +#include + #include "FilesystemCommand.h" namespace relpipe { @@ -30,6 +32,7 @@ void process(std::istream& input, std::ostream& output, Configuration& configuration) { // TODO: ParallelFilesystemCommand + mq_close(0); // FIXME: remove (this line just tests that linking to librt worked well) throw RelpipeWriterException(L"ParallelFilesystemCommand is not yet implemented"); } };