Skip to content

Commit

Permalink
fix: Simplified WindowsStore C++ flag settings
Browse files Browse the repository at this point in the history
  • Loading branch information
atteneder committed May 14, 2021
1 parent 1256969 commit 933f047
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
13 changes: 0 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -936,19 +936,6 @@ else()
set_target_properties(dracodec_unity PROPERTIES BUNDLE true)
set_target_properties(dracoenc_unity PROPERTIES BUNDLE true)
endif()
if(WIN32 AND ${CMAKE_SYSTEM_NAME} STREQUAL "WindowsStore")
# Ignoring Error C4146 unary minus operator applied to unsigned type,
# result still unsigned
target_compile_options(draco_compression_attributes_enc PRIVATE "/wd4146")
target_compile_options(draco_compression_bit_coders PRIVATE "/wd4146")
target_compile_options(draco_compression_entropy PRIVATE "/wd4146")
target_compile_options(draco_compression_mesh_dec PRIVATE "/wd4146")
target_compile_options(draco_compression_mesh_enc PRIVATE "/wd4146")
target_compile_options(draco_core PRIVATE "/wd4146")
target_compile_options(draco_io PRIVATE "/wd4146")
target_compile_options(draco_metadata_dec PRIVATE "/wd4146")
target_compile_options(draco_metadata_enc PRIVATE "/wd4146")
endif()
endif()

if(DRACO_MAYA_PLUGIN)
Expand Down
6 changes: 6 additions & 0 deletions cmake/draco_build_definitions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,11 @@ macro(draco_set_build_definitions)
list(APPEND draco_base_cxx_flags "-fembed-bitcode")
endif()

if(WIN32 AND ${CMAKE_SYSTEM_NAME} STREQUAL "WindowsStore")
# Ignoring Error C4146 unary minus operator applied to unsigned type, result
# still unsigned
list(APPEND draco_msvc_cxx_flags "/wd4146")
endif()

draco_configure_sanitizer()
endmacro()

0 comments on commit 933f047

Please sign in to comment.