Skip to content

Commit

Permalink
fix: windows visual studio 2019 build error (math defines for pffft)
Browse files Browse the repository at this point in the history
fix issue #174: windows visual studio 2019 build error
  • Loading branch information
hello-adam authored Jun 7, 2024
2 parents 2d58fb2 + 223b975 commit 5ed943e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [0.54.1](https://github.com/Mahlet-Inc/hobbits/compare/v0.54.0...v0.54.1) (2024-04-30)


### Bug Fixes

* add versionless Qt build compatibility ([2d58fb2](https://github.com/Mahlet-Inc/hobbits/commit/2d58fb2f61cc2b20ac2a901325ad54422ec03215))

# [0.54.0](https://github.com/Mahlet-Inc/hobbits/compare/v0.53.4...v0.54.0) (2023-02-17)


Expand Down
6 changes: 5 additions & 1 deletion external/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ else()
target_compile_definitions(pffft PUBLIC PFFFT_SIMD_DISABLE)
endif()
target_compile_options(pffft PUBLIC "${PFFFT_CFLAGS}")
target_link_libraries(pffft m)
if(WIN32)
target_compile_definitions(pffft PRIVATE _USE_MATH_DEFINES)
else(WIN32)
target_link_libraries(pffft m)
endif()
target_include_directories(pffft INTERFACE pffft)

add_library(PFFFT::PFFFT ALIAS pffft)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hobbits",
"version": "0.54.0",
"version": "0.54.1",
"private": true,
"config": {
"commitizen": {
Expand Down

0 comments on commit 5ed943e

Please sign in to comment.