Skip to content

Commit aa5e60a

Browse files
Fixed bad configuration of base64 library #3350
1 parent d6c8b27 commit aa5e60a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

contrib/base64-cmake/CMakeLists.txt

+6-1
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,10 @@ add_library(base64 ${LINK_MODE}
3939
${LIBRARY_DIR}/lib/codecs.h
4040
${CMAKE_CURRENT_BINARY_DIR}/config.h)
4141

42-
target_compile_options(base64 PRIVATE ${base64_SSSE3_opt} ${base64_SSE41_opt} ${base64_SSE42_opt} ${base64_AVX_opt} ${base64_AVX2_opt})
42+
set_source_files_properties(${LIBRARY_DIR}/lib/arch/avx/codec.c PROPERTIES COMPILE_FLAGS -mavx)
43+
set_source_files_properties(${LIBRARY_DIR}/lib/arch/avx2/codec.c PROPERTIES COMPILE_FLAGS -mavx2)
44+
set_source_files_properties(${LIBRARY_DIR}/lib/arch/sse41/codec.c PROPERTIES COMPILE_FLAGS -msse4.1)
45+
set_source_files_properties(${LIBRARY_DIR}/lib/arch/sse42/codec.c PROPERTIES COMPILE_FLAGS -msse4.2)
46+
set_source_files_properties(${LIBRARY_DIR}/lib/arch/ssse3/codec.c PROPERTIES COMPILE_FLAGS -mssse3)
47+
4348
target_include_directories(base64 PRIVATE ${LIBRARY_DIR}/include ${CMAKE_CURRENT_BINARY_DIR})

0 commit comments

Comments
 (0)