diff options
| author | Tony-LunarG <tony@lunarg.com> | 2019-02-26 14:44:32 -0700 |
|---|---|---|
| committer | Tony Barbour <tony@lunarg.com> | 2019-02-27 16:50:35 -0700 |
| commit | 0bc09050e70d62550a0541b1b4304a781089df8e (patch) | |
| tree | 793fab52c10c0e8e83a8d2f68c4ca74a2cf11544 | |
| parent | 282c391f0fda31ac5ce0fe67cdd634b3780f427c (diff) | |
| download | usermoji-0bc09050e70d62550a0541b1b4304a781089df8e.tar.xz | |
Add librt when necessary
Change-Id: Ie4b3fdec4d61a52e82880308bb567f2f22c6c273
| -rw-r--r-- | cube/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cube/CMakeLists.txt b/cube/CMakeLists.txt index ac39830f..451303f9 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) |
