Skip to content

Commit

Permalink
ENH: ignore C4305 warning
Browse files Browse the repository at this point in the history
Change-Id: I291d7e9686a85b38bcbb75875abd766af36a681d
(cherry picked from commit 1de5069bd09599f693dbe37a627fa93d5dcfae74)
  • Loading branch information
ArthurBambulab authored and lanewei120 committed Jul 7, 2023
1 parent bc82396 commit 8a7d3f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,11 @@ if (APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=partial-availability -Werror=unguarded-availability -Werror=unguarded-availability-new")
endif ()

if(MSVC)
# 添加编译选项,忽略警告 C4305 (格式转换截断)
add_compile_options(/wd4305)
endif()

# Where all the bundled libraries reside?
set(LIBDIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
set(LIBDIR_BIN ${CMAKE_CURRENT_BINARY_DIR}/src)
Expand Down

0 comments on commit 8a7d3f3

Please sign in to comment.