File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -39,5 +39,10 @@ add_library(base64 ${LINK_MODE}
39
39
${LIBRARY_DIR} /lib/codecs.h
40
40
${CMAKE_CURRENT_BINARY_DIR} /config.h)
41
41
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
+
43
48
target_include_directories (base64 PRIVATE ${LIBRARY_DIR} /include ${CMAKE_CURRENT_BINARY_DIR} )
You can’t perform that action at this time.
0 commit comments