Module: Demos Branch: cmake Commit: af9e1d12e5f4287b0a5f1e8960acdc3d7a3f4a55 URL: http://cgit.freedesktop.org/mesa/demos/commit/?id=af9e1d12e5f4287b0a5f1e8960acdc3d7a3f4a55
Author: José Fonseca <[email protected]> Date: Tue Nov 9 17:15:03 2010 +0000 cmake: texleak requires unix. --- src/tests/CMakeLists.txt | 6 +++++- src/tests/texleak.c | 2 -- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index c246dad..1801fcc 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt @@ -111,7 +111,6 @@ set (targets texdown texfilt texgenmix - texleak texline texobj texrect @@ -132,6 +131,11 @@ set (targets zreaddraw ) +if (UNIX) + set (targets ${targets} texleak) +endif (UNIX) + + foreach (target ${targets}) add_executable (${subdir}_${target} ${target}.c) set_target_properties (${subdir}_${target} PROPERTIES OUTPUT_NAME ${target}) diff --git a/src/tests/texleak.c b/src/tests/texleak.c index e9dcb58..5cf4ff3 100644 --- a/src/tests/texleak.c +++ b/src/tests/texleak.c @@ -84,9 +84,7 @@ static void Display( void ) end.tv_sec * 1000 + end.tv_usec / 1000 - start.tv_sec * 1000 - start.tv_usec / 1000, numTexObj * 4 * size / 1024 * size / 1024); -#ifndef _WIN32 sleep(1); -#endif } _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
