Skip to content

Commit

Permalink
clang noavx fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenweaver committed Aug 22, 2019
1 parent 06c8c32 commit 1e92818
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,16 @@ endif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(DEFAULT_COMPILE_FLAGS "-fsigned-char -O3")
PCL_CHECK_FOR_AVX()
if(${HAVE_AVX_EXTENSIONS})

if(${HAVE_AVX_EXTENSIONS} AND NOT ${NOAVX})
set(DEFAULT_COMPILE_FLAGS "${DEFAULT_COMPILE_FLAGS} -march=native -mtune=native -mavx")
add_definitions (-D_SLKP_USE_AVX_INTRINSICS)
PCL_CHECK_FOR_FMA3()
if (${HAVE_FMA3})
set(DEFAULT_COMPILE_FLAGS "${DEFAULT_COMPILE_FLAGS} -mfma")
add_definitions (-D_SLKP_USE_FMA3_INTRINSICS)
endif (${HAVE_FMA3})
else(${HAVE_AVX_EXTENSIONS})
else(${HAVE_AVX_EXTENSIONS} AND NOT ${NOAVX})
PCL_CHECK_FOR_SSE3()
if(${HAVE_SSE3_EXTENSIONS})
add_definitions (-D_SLKP_USE_SSE_INTRINSICS)
Expand Down

0 comments on commit 1e92818

Please sign in to comment.