Skip to content

Commit e5acc29

Browse files
committed
simplifying
1 parent d7cb030 commit e5acc29

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

CMakeLists.txt

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ CHECK_CXX_COMPILER_FLAG(-march=native FASTPFOR_COMPILER_SUPPORTS_MARCH_NATIVE)
9292
if(FASTPFOR_COMPILER_SUPPORTS_MARCH_NATIVE)
9393
target_compile_options(FastPFOR PRIVATE -march=native)
9494
else()
95-
message(STATUS "native target not supported")
95+
message(STATUS "native target not supported")
9696
endif()
9797

9898
MESSAGE( STATUS "CMAKE_CXX_FLAGS_DEBUG: " ${CMAKE_CXX_FLAGS_DEBUG} )
@@ -120,34 +120,6 @@ else()
120120
message(STATUS "SIMDE not used")
121121
endif()
122122

123-
# Apply SIMD compiler flags to FastPFOR target
124-
if(SUPPORT_SSE42)
125-
if(MSVC)
126-
target_compile_options(FastPFOR PRIVATE /arch:SSE2)
127-
else()
128-
target_compile_options(FastPFOR PRIVATE -msse4.2)
129-
endif()
130-
message(STATUS "FastPFOR: SSE4.2 support enabled")
131-
endif()
132-
133-
if(SUPPORT_AVX)
134-
if(MSVC)
135-
target_compile_options(FastPFOR PRIVATE /arch:AVX)
136-
else()
137-
target_compile_options(FastPFOR PRIVATE -mavx)
138-
endif()
139-
message(STATUS "FastPFOR: AVX support enabled")
140-
endif()
141-
142-
if(SUPPORT_AVX2)
143-
if(MSVC)
144-
target_compile_options(FastPFOR PRIVATE /arch:AVX2)
145-
else()
146-
target_compile_options(FastPFOR PRIVATE -mavx2)
147-
endif()
148-
message(STATUS "FastPFOR: AVX2 support enabled")
149-
endif()
150-
151123
add_executable(entropy src/entropy.cpp)
152124
target_link_libraries(entropy FastPFOR)
153125

0 commit comments

Comments
 (0)