Skip to content

Commit

Permalink
MiOmi: add _USE_MATH_DEFINES compiler definition
Browse files Browse the repository at this point in the history
  • Loading branch information
mossheim committed Feb 11, 2021
1 parent b3ab4cc commit c9dc06b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MiOmi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ include_directories(
${MI_PATH}
)

if(MSVC)
add_definitions(-D_USE_MATH_DEFINES) # defines M_PI with MSVC
endif()

set(MI_SOURCES
${MI_PATH}/omi/dsp/dsp.h
Expand Down

0 comments on commit c9dc06b

Please sign in to comment.