diff --git a/cube/CMakeLists.txt b/cube/CMakeLists.txt index ac39830f2..451303f94 100644 --- a/cube/CMakeLists.txt +++ b/cube/CMakeLists.txt @@ -174,6 +174,10 @@ elseif(NOT WIN32) cube.vert.inc cube.frag.inc) target_link_libraries(vkcube Vulkan::Vulkan) + CHECK_LIBRARY_EXISTS("rt" clock_gettime "" NEED_RT) + if (NEED_RT) + target_link_libraries(vkcube rt) + endif() endif() else() if(CMAKE_CL_64)