Skip to content

Commit 54ee564

Browse files
authored
Merge pull request #5663 from InsightSoftwareConsortium/remove_duplicate_arch_flags
2 parents 46a0bf9 + 1d300df commit 54ee564

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMake/ITKSetStandardCompilerFlags.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,11 @@ macro(check_compiler_platform_flags)
446446
)
447447
endif()
448448

449-
check_sse2_flags(ITK_SSE2_CFLAGS_IF_AVAILABLE)
449+
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
450+
# Setting sse2 flags only make sense on 32 bit architectures
451+
# on 64bit systems, sse2 support is required, and compiler support is defaulted
452+
check_sse2_flags(ITK_SSE2_CFLAGS_IF_AVAILABLE)
453+
endif()
450454
set(
451455
ITK_REQUIRED_CXX_FLAGS
452456
"${ITK_REQUIRED_CXX_FLAGS} ${ITK_SSE2_CFLAGS_IF_AVAILABLE}"

0 commit comments

Comments
 (0)