Change warnings to work with NMake
@@ -118,8 +118,7 @@ macro(astcenc_set_properties NAME)
# MSVC compiler defines
$<$<CXX_COMPILER_ID:MSVC>:/EHsc>
- $<$<CXX_COMPILER_ID:MSVC>:/W4>
- $<$<CXX_COMPILER_ID:MSVC>:/wd"4324">
+ $<$<CXX_COMPILER_ID:MSVC>:/wd4324>
# G++ and Clang++ compiler defines
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall>
@@ -290,6 +289,10 @@ endif()
astcenc_set_properties(${ASTC_TARGET}-static)
+ target_compile_options(${ASTC_TARGET}-static
+ PRIVATE
+ $<$<CXX_COMPILER_ID:MSVC>:/W4>)
+
if(${CLI})
astcenc_set_properties(${ASTC_TARGET})
