diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2016-05-25 21:39:21 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2016-05-25 21:59:43 +0200 |
| commit | 69497d35c0e35a1f9b789d016e9eb4946b8f0fab (patch) | |
| tree | 378ee53e9738d0532396345cbd90488a254de3a7 /src/bin/jp2/CMakeLists.txt | |
| parent | d67cd2220a291b54718f731052be4a9397f67077 (diff) | |
opj_decompress: use clock_gettime() instead of getrusage() so as to get the time spent, and not to the total CPU time
Diffstat (limited to 'src/bin/jp2/CMakeLists.txt')
| -rw-r--r-- | src/bin/jp2/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/jp2/CMakeLists.txt b/src/bin/jp2/CMakeLists.txt index dc013c21..ad7bce71 100644 --- a/src/bin/jp2/CMakeLists.txt +++ b/src/bin/jp2/CMakeLists.txt @@ -57,6 +57,9 @@ foreach(exe opj_decompress opj_compress opj_dump) # On unix you need to link to the math library: if(UNIX) target_link_libraries(${exe} m) + IF("${CMAKE_SYSTEM_NAME}" MATCHES "Linux") + target_link_libraries(${exe} rt) + endif() endif() # Install exe install(TARGETS ${exe} |
