diff --git a/CMakeLists.txt b/CMakeLists.txt index c43a8de27ec3272d3e1f708748f99a126ce2e1f0..b20bfe5e8e84e4e8abf98c6c8fffd744f10fd45f 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)