Problem with OpenCV 3.10 installation on Windows 7

I'm total begginer in Cmake and I don't know where I have to put code. My problem is:
1
2
3
4
5
6
7
8
CMake Deprecation Warning at CMakeLists.txt:81 (cmake_policy):
  The OLD behavior for policy CMP0020 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
I'm following the instructions here https://www.learnopencv.com/install-opencv3-on-windows/

and found the answer here:

http://answers.opencv.org/question/165060/opencv-32-install-problems-in-windows10-64-bit-vs2017/

I need to add line in Cmake file but I don't know where to add it.

cmake -DENABLE_PRECOMPILED_HEADERS=OFF

If I add it here https://imgur.com/a/QdO7ucX it shows me error: CMake Error at CMakeLists.txt:12:
Parse error. Expected a command name, got left paren with text "(".

this is my cmake file:

https://drive.google.com/open?id=1rhT_Sl2XH-ejI_tDBfSIbl2304huDq3n

Can anyone help me?
Last edited on
Topic archived. No new replies allowed.