|
|
@@ -148,7 +148,20 @@ function(compile_igl_module module_dir)
|
|
|
endif()
|
|
|
add_library(${module_libname} STATIC ${SOURCES_IGL_${module_name}} ${ARGN})
|
|
|
if(MSVC)
|
|
|
- target_compile_options(${module_libname} PRIVATE /w) # disable all warnings (not ideal but...)
|
|
|
+ # Silencing some compile warnings
|
|
|
+ target_compile_options(${module_libname} PRIVATE
|
|
|
+ # Type conversion warnings. These can be fixed with some effort and possibly more verbose code.
|
|
|
+ /wd4267 # conversion from 'size_t' to 'type', possible loss of data
|
|
|
+ /wd4244 # conversion from 'type1' to 'type2', possible loss of data
|
|
|
+ /wd4018 # signed/unsigned mismatch
|
|
|
+ /wd4305 # truncation from 'double' to 'float'
|
|
|
+ # This one is from template instantiations generated by autoexplicit.sh:
|
|
|
+ /wd4667 # no function template defined that matches forced instantiation ()
|
|
|
+ # This one is easy to fix, just need to switch to safe version of C functions
|
|
|
+ /wd4996 # this function or variable may be unsafe
|
|
|
+ # This one is when using bools in adjacency matrices
|
|
|
+ /wd4804 #'+=': unsafe use of type 'bool' in operation
|
|
|
+ )
|
|
|
else()
|
|
|
#target_compile_options(${module_libname} PRIVATE -w) # disable all warnings (not ideal but...)
|
|
|
endif()
|