Skip to content

Commit

Permalink
Added _USE_MATH_DEFINES define on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
azonenberg committed Sep 21, 2020
1 parent 7ec4089 commit 53f63d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ set(CMAKE_CXX_FLAGS "-g -fopenmp ${WARNINGS} --std=c++11 -mtune=native -ffast-ma
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -fsanitize=address")

if(WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_USE_MATH_DEFINES")
endif()

find_package(PkgConfig)
pkg_check_modules(GTKMM gtkmm-3.0)
pkg_check_modules(SIGCXX sigc++-2.0)
Expand Down
2 changes: 1 addition & 1 deletion lib
Submodule lib updated from b8266a to 60a07c

0 comments on commit 53f63d6

Please sign in to comment.