Skip to content

Commit

Permalink
Fixed samples build with nonfree.
Browse files Browse the repository at this point in the history
(cherry picked from commit 341e7b3)
  • Loading branch information
asmorkalov committed Oct 26, 2015
1 parent 966d35a commit 2e78a3e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion samples/c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-function")
endif()

ocv_include_modules(${OPENCV_C_SAMPLES_REQUIRED_DEPS})
ocv_include_modules(${OPENCV_C_SAMPLES_REQUIRED_DEPS} opencv_nonfree)

# ---------------------------------------------
# Define executable targets
Expand Down
2 changes: 1 addition & 1 deletion samples/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
project(cpp_samples)

ocv_include_directories("${OpenCV_SOURCE_DIR}/include")#for opencv.hpp
ocv_include_modules(${OPENCV_CPP_SAMPLES_REQUIRED_DEPS})
ocv_include_modules(${OPENCV_CPP_SAMPLES_REQUIRED_DEPS} opencv_nonfree)

if(HAVE_opencv_gpu)
ocv_include_directories("${OpenCV_SOURCE_DIR}/modules/gpu/include")
Expand Down
2 changes: 1 addition & 1 deletion samples/cpp/tutorial_code/features2D/SURF_descriptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ int main( int argc, char** argv )
* @function readme
*/
void readme()
{ std::cout << " Usage: ./SURF_descriptor <img1> <img2>" << std::endl; }
{ printf(" Usage: ./SURF_descriptor <img1> <img2>\n"); }

#endif
2 changes: 1 addition & 1 deletion samples/ocl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)

project("${project}_samples")

ocv_include_modules(${OPENCV_OCL_SAMPLES_REQUIRED_DEPS})
ocv_include_modules(${OPENCV_OCL_SAMPLES_REQUIRED_DEPS} opencv_nonfree)

if(HAVE_OPENCL)
ocv_include_directories(${OPENCL_INCLUDE_DIR})
Expand Down

0 comments on commit 2e78a3e

Please sign in to comment.