From f1d9680ba8fbd16d2b7c2ee21bf826bad73ac22b Mon Sep 17 00:00:00 2001 From: yao Date: Fri, 28 Jun 2013 11:44:43 +0800 Subject: [PATCH] format the ocl's samples name --- modules/ocl/test/main.cpp | 2 ++ samples/ocl/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/ocl/test/main.cpp b/modules/ocl/test/main.cpp index dd46ff6e0..4ba02cf9b 100644 --- a/modules/ocl/test/main.cpp +++ b/modules/ocl/test/main.cpp @@ -118,6 +118,8 @@ int main(int argc, char **argv) setDevice(oclinfo[pid], device); + setBinaryDiskCache(CACHE_UPDATE); + cout << "Device type:" << type << endl << "Device name:" << oclinfo[pid].DeviceName[device] << endl; return RUN_ALL_TESTS(); } diff --git a/samples/ocl/CMakeLists.txt b/samples/ocl/CMakeLists.txt index cdcf2f3e5..a201d8338 100644 --- a/samples/ocl/CMakeLists.txt +++ b/samples/ocl/CMakeLists.txt @@ -27,7 +27,7 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND) target_link_libraries(${the_target} ${OPENCV_LINKER_LIBS} ${OPENCV_OCL_SAMPLES_REQUIRED_DEPS}) set_target_properties(${the_target} PROPERTIES - OUTPUT_NAME "${name}_${project}" + OUTPUT_NAME "${project}-example-${name}" PROJECT_LABEL "(EXAMPLE_${project_upper}) ${name}") if(ENABLE_SOLUTION_FOLDERS)