File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -167,9 +167,11 @@ target_include_directories(${TARGET} PUBLIC
167
167
)
168
168
169
169
if (MSVC )
170
- target_link_libraries (${TARGET} PRIVATE ${WHISPER_EXTRA_LIBS} ${CMAKE_THREAD_LIBS_INIT} )
170
+ target_link_libraries (${TARGET} PRIVATE ${WHISPER_EXTRA_LIBS} ${CMAKE_THREAD_LIBS_INIT} )
171
+
172
+ set (WHISPER_EXTRA_FLAGS ${WHISPER_EXTRA_FLAGS} -D_CRT_SECURE_NO_WARNINGS)
171
173
else ()
172
- target_link_libraries (${TARGET} PRIVATE m ${WHISPER_EXTRA_LIBS} ${CMAKE_THREAD_LIBS_INIT} )
174
+ target_link_libraries (${TARGET} PRIVATE m ${WHISPER_EXTRA_LIBS} ${CMAKE_THREAD_LIBS_INIT} )
173
175
endif ()
174
176
175
177
if (BUILD_SHARED_LIBS )
@@ -180,10 +182,6 @@ if (BUILD_SHARED_LIBS)
180
182
target_compile_definitions (${TARGET} PUBLIC
181
183
WHISPER_SHARED
182
184
)
183
-
184
- if (MSVC )
185
- target_compile_definitions (${TARGET} PUBLIC __AVX2__ _CRT_SECURE_NO_WARNINGS)
186
- endif ()
187
185
endif ()
188
186
189
187
target_compile_definitions (${TARGET} PUBLIC
You can’t perform that action at this time.
0 commit comments