|
@@ -83,6 +83,11 @@ function(compile_igl_module module_dir prefix)
|
|
|
"${LIBIGL_SOURCE_DIR}/igl/${prefix}/${module_dir}/*.cpp")
|
|
|
add_library(igl_${module_name} STATIC ${SOURCES_IGL_${module_name}} ${ARGN})
|
|
|
target_link_libraries(igl_${module_name} PUBLIC igl_common)
|
|
|
+ if(MSVC)
|
|
|
+ target_compile_options(igl_${module_name} PRIVATE /w) # disable all warnings (not ideal but...)
|
|
|
+ else()
|
|
|
+ #target_compile_options(igl_${module_name} PRIVATE -w) # disable all warnings (not ideal but...)
|
|
|
+ endif()
|
|
|
else()
|
|
|
add_library(igl_${module_name} INTERFACE)
|
|
|
target_link_libraries(igl_${module_name} INTERFACE igl_common)
|