Skip to content

Commit

Permalink
Do not optimize native by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Jun 2, 2020
1 parent 07bace5 commit a29b4db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/GtsamBuildTypes.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
endif()

if (NOT MSVC)
option(GTSAM_BUILD_WITH_MARCH_NATIVE "Enable/Disable building with all instructions supported by native architecture (binary may not be portable!)" ON)
option(GTSAM_BUILD_WITH_MARCH_NATIVE "Enable/Disable building with all instructions supported by native architecture (binary may not be portable!)" OFF)
if(GTSAM_BUILD_WITH_MARCH_NATIVE)
# Add as public flag so all dependant projects also use it, as required
# by Eigen to avid crashes due to SIMD vectorization:
Expand Down

0 comments on commit a29b4db

Please sign in to comment.