How do I enable the SSE/SSE2 instruction set in Visual Studio 2008 (using CMake)?

后端 未结 4 1167
庸人自扰
庸人自扰 2021-01-11 11:39

In Visual Studio 2005 I went in:

View --> Property Pages --> C/C++ --> Code Generation --> Enable Enhanced Instruction Set

But in Visual Studio 200

4条回答
  •  一生所求
    2021-01-11 12:07

    Using CMake you could add the following to CMakeLists.txt:

    IF(MSVC)
       ADD_DEFINITIONS(/arch:SSE)
    ENDIF(MSVC)
    

    or /arch:SSE2.

提交回复
热议问题