Skip to content

Commit 780af81

Browse files
allixendersahrk
authored andcommitted
add_compile_definitions(_USE_MATH_DEFINES) for MSVC
1 parent d08e10d commit 780af81

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ find_package(Doxygen)
1111
if(MSVC)
1212
# add_compile_options(/W4 /WX)
1313
add_compile_options(/W2)
14+
add_compile_definitions(_USE_MATH_DEFINES)
1415
else()
1516
add_compile_options(-Wall -pedantic)
1617
endif()

0 commit comments

Comments
 (0)