parallel processing: link to librt (POSIX MQ) v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Mon, 20 Jan 2020 15:48:39 +0100
branchv_0
changeset 55 698836fc65b4
parent 54 ef726975c34b
child 56 81a53e7cf0ab
parallel processing: link to librt (POSIX MQ)
src/CMakeLists.txt
src/ParallelFilesystemCommand.h
--- 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)
 
--- 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 <mqueue.h>
+
 #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");
 	}
 };