Skip to content
Snippets Groups Projects
Commit 716c73a2 authored by Votre Nom's avatar Votre Nom
Browse files

Fix error of shm_open,... not found. Add librt.

parent 2febcd2f
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,11 @@ message("Without libjpeg") ...@@ -35,6 +35,11 @@ message("Without libjpeg")
target_compile_definitions(blc PRIVATE -DWITHOUT_JPEG) target_compile_definitions(blc PRIVATE -DWITHOUT_JPEG)
endif() 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. #Both version of librairies will have the same name only the extension will change.
set_target_properties(static_blc PROPERTIES OUTPUT_NAME blc) set_target_properties(static_blc PROPERTIES OUTPUT_NAME blc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment