From 9b72ed0b47e8bcd77562c1fdb3d80fdb65637eb4 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Mon, 13 Nov 2017 12:04:10 +0100 Subject: [PATCH] Fix a warning --- Classification/examples/Classification/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classification/examples/Classification/CMakeLists.txt b/Classification/examples/Classification/CMakeLists.txt index 58170a221f0..d8edcd17208 100644 --- a/Classification/examples/Classification/CMakeLists.txt +++ b/Classification/examples/Classification/CMakeLists.txt @@ -60,7 +60,7 @@ create_single_source_cgal_program( "example_feature.cpp" CXX_FEATURES ${needed_c if( OpenCV_FOUND ) include_directories( ${OpenCV_INCLUDE_DIRS} ) create_single_source_cgal_program( "example_random_forest.cpp" CXX_FEATURES ${needed_cxx_features} ) - target_link_libraries( example_random_forest ${OpenCV_LIBS} ) + target_link_libraries( example_random_forest PRIVATE ${OpenCV_LIBS} ) else() message(STATUS "OpenCV not found, random forest example won't be compiled.") endif()