Skip to content

Commit

Permalink
build: add definition for M_PI on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ebraraktas committed Aug 7, 2024
1 parent 8429e5e commit 5d3c89e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ string(REPLACE "." ";" CTRANSLATE2_VERSION_LIST ${CTRANSLATE2_VERSION})
list(GET CTRANSLATE2_VERSION_LIST 0 CTRANSLATE2_MAJOR_VERSION)

if(MSVC)
add_compile_definitions(_USE_MATH_DEFINES) # required for M_PI
if(BUILD_SHARED_LIBS)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
else()
Expand Down

0 comments on commit 5d3c89e

Please sign in to comment.