From: hbristow Date: Fri, 13 Sep 2013 07:22:12 +0000 (+1000) Subject: Added fixes to CMakeLists.txt X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~3759^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=530ad447bc27847253818e50db0a8087e724562a;p=platform%2Fupstream%2Fopencv.git Added fixes to CMakeLists.txt --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 32cef39..dd14bbd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,6 +43,7 @@ if(DEFINED CMAKE_BUILD_TYPE) endif() project(OpenCV CXX C) + include(cmake/OpenCVUtils.cmake) # ---------------------------------------------------------------------------- @@ -360,6 +361,7 @@ include(cmake/OpenCVFindLibsPerf.cmake) # ---------------------------------------------------------------------------- # Detect other 3rd-party libraries/tools # ---------------------------------------------------------------------------- + # --- LATEX for pdf documentation --- if(BUILD_DOCS) include(cmake/OpenCVFindLATEX.cmake) @@ -835,7 +837,6 @@ status("") status(" Matlab:") status(" mex:" MATLAB_MEX_SCRIPT THEN "${MATLAB_MEX_SCRIPT}" ELSE NO) if (MATLAB_FOUND) - get_property(MEX_WORKS GLOBAL PROPERTY MEX_WORKS) status(" Compiler/generator:" MEX_WORKS THEN "Working" ELSE "Not working (bindings will not be generated)") endif() diff --git a/modules/matlab/CMakeLists.txt b/modules/matlab/CMakeLists.txt index 4eb0f4d..5592f40 100644 --- a/modules/matlab/CMakeLists.txt +++ b/modules/matlab/CMakeLists.txt @@ -187,7 +187,6 @@ if (NOT MEX_WORKS) endif() # if we make it here, mex works! -set_property(GLOBAL PROPERTY MEX_WORKS TRUE) set(MEX_WORKS True CACHE BOOL ADVANCED)