From 716c73a2fc3dd26902d3adf19e3409658ccd07ec Mon Sep 17 00:00:00 2001 From: Votre Nom <Arnaud Blanchard> Date: Thu, 30 Sep 2021 19:42:46 +0200 Subject: [PATCH] Fix error of shm_open,... not found. Add librt. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c43a8de..b20bfe5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,6 +35,11 @@ message("Without libjpeg") target_compile_definitions(blc PRIVATE -DWITHOUT_JPEG) endif() +if(UNIX AND NOT APPLE) + target_link_libraries(blc PRIVATE rt) +endif() + + #Both version of librairies will have the same name only the extension will change. set_target_properties(static_blc PROPERTIES OUTPUT_NAME blc) -- GitLab