mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 05:40:05 +00:00
enable USE_MSVC_SSE2 for MSVC by default, AVX for MSVX disabled by default.
This commit is contained in:
parent
f27eb19633
commit
ed6530264f
@ -85,10 +85,23 @@ IF(MSVC)
|
|||||||
ADD_DEFINITIONS(-D_WIN64)
|
ADD_DEFINITIONS(-D_WIN64)
|
||||||
ELSE()
|
ELSE()
|
||||||
OPTION(USE_MSVC_SSE "Use MSVC /arch:sse option" ON)
|
OPTION(USE_MSVC_SSE "Use MSVC /arch:sse option" ON)
|
||||||
|
option(USE_MSVC_SSE2 "Compile your program with SSE2 instructions" ON)
|
||||||
|
|
||||||
IF (USE_MSVC_SSE)
|
IF (USE_MSVC_SSE)
|
||||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /arch:SSE")
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /arch:SSE")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
IF (USE_MSVC_SSE2)
|
||||||
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /arch:SSE2")
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
option(USE_MSVC_AVX "Compile your program with AVX instructions" OFF)
|
||||||
|
|
||||||
|
IF(USE_MSVC_AVX)
|
||||||
|
add_definitions(/arch:AVX)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
OPTION(USE_MSVC_FAST_FLOATINGPOINT "Use MSVC /fp:fast option" ON)
|
OPTION(USE_MSVC_FAST_FLOATINGPOINT "Use MSVC /fp:fast option" ON)
|
||||||
IF (USE_MSVC_FAST_FLOATINGPOINT)
|
IF (USE_MSVC_FAST_FLOATINGPOINT)
|
||||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /fp:fast")
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /fp:fast")
|
||||||
|
Loading…
Reference in New Issue
Block a user