* Fix CMakeLists.txt to handle deprecated gpu Warnings
* Conditionally apply -Wno-deprecated-gpu-targets only when GGML_CUDA is enabled
* Conditionally apply -Wno-deprecated-gpu-targets only when GGML_CUDA is enabled and not MSVC
---------
Co-authored-by: Jugal Sheth <redacted>
whisper_option_depr(WARNING WHISPER_SYCL_F16 GGML_SYCL_F16)
whisper_option_depr(WARNING WHISPER_CCACHE GGML_CCACHE)
+if (GGML_CUDA AND NOT MSVC)
+ #GGML_CUDA enabled, add the necessary compile options -Wno-deprecated-gpu-targets
+ add_compile_options(-Wno-deprecated-gpu-targets)
+endif()
+
#
# build the library
#