How do I enable SSE2 from the command line

1.3k views Asked by At

I'm compiling Dlib's Python Examples.

The compile script is:

mkdir build
cd build
cmake ../../tools/python 
cmake --build . --config Release --target install  
cd ..

How do I enable SSE2 from the command line? I tried adding the argument -USE_SSE2_INSTRUCTIONS=ON but got unknown argument error.

From Cmake cache file:

//Compile your program with SSE2 instructions
USE_SSE2_INSTRUCTIONS:BOOL=OFF
1

There are 1 answers

0
Davis King On BEST ANSWER

You forgot the -D. So you have to say, cmake -DUSE_SSE2_INSTRUCTIONS=ON