ref: 1f891e3616b4e8b17276830930c296c9f88332e3
parent: 510e1029b45aa01a7047e5b3b82169be40911b96
author: Marcus Asteborg <[email protected]>
date: Thu Jul 7 16:14:37 EDT 2022
cmake - move warning C4244 to level 4 Opus compare is used to generate test vectors so no cosmetic changes is taken. Hence we move this warning to level 4 for opus compare. Signed-off-by: Mark Harris <[email protected]>
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -589,6 +589,10 @@
add_executable(opus_compare ${opus_compare_sources})
target_include_directories(opus_compare PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
target_link_libraries(opus_compare PRIVATE opus ${OPUS_REQUIRED_LIBRARIES})
+ if(MSVC)
+ # move cosmetic warning to level 4 for opus_compare
+ target_compile_options(opus_compare PRIVATE /w44244)
+ endif()
endif()
if(BUILD_TESTING AND NOT BUILD_SHARED_LIBS)