Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions interval_lib_wrapper/filib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ set (FILIB_NAME ${FILIB_NAME} PARENT_SCOPE)
include (FindFilib.cmake)

# Avoid overflowing display with warnings
if (WIN32)
add_compile_options("/wd4244")
if (MSVC)
add_compile_options("/wd4244") # disable warning conversion from 'double' to '___', possible loss of data
else ()
add_compile_options(-w)
endif ()
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if (WIN32)
target_compile_options (ibex PUBLIC "-U__STRICT_ANSI__")
endif ()

if (WIN32)
if (MSVC)
target_compile_options (ibex PUBLIC "/wd4267" "/wd4244" "/wd4800" "/wd4018" "/wd4101" "/wd4715" "/wd4996" "/wd4065")
else ()
target_compile_options (ibex PUBLIC "-Wno-unknown-pragmas" "-Wno-undefined-var-template") # last warning appears with Filib on MacOS
Expand Down