diff options
author | Marcus Asteborg <maastebo@microsoft.com> | 2022-07-08 06:14:37 +0300 |
---|---|---|
committer | Mark Harris <mark.hsj@gmail.com> | 2022-07-08 08:07:40 +0300 |
commit | 1f891e3616b4e8b17276830930c296c9f88332e3 (patch) | |
tree | 9aa29f1be477a16b7bcd4ca37d0b0e9b1708e456 | |
parent | 510e1029b45aa01a7047e5b3b82169be40911b96 (diff) |
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 <mark.hsj@gmail.com>
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 75362ccf..21c7ae53 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -589,6 +589,10 @@ if(OPUS_BUILD_PROGRAMS) 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) |