[fftw3] fix bigobj compiler option (#25972)

* fix bigobj in fftw3

* v db
This commit is contained in:
Alexander Neumann 2022-07-25 21:19:03 +02:00 committed by GitHub
parent a6c5c0140d
commit 1aa8ac7a05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 2 deletions

13
ports/fftw3/bigobj.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 64db20b6a..ce438a379 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -315,7 +315,7 @@ endif ()
add_library (${fftw3_lib} ${SOURCEFILES})
target_include_directories (${fftw3_lib} INTERFACE $<INSTALL_INTERFACE:include>)
if (MSVC AND NOT (CMAKE_C_COMPILER_ID STREQUAL "Intel"))
- target_compile_definitions (${fftw3_lib} PRIVATE /bigobj)
+ target_compile_options (${fftw3_lib} PRIVATE "/bigobj")
endif ()
if (HAVE_SSE)
target_compile_options (${fftw3_lib} PRIVATE ${SSE_FLAG})

View File

@ -12,6 +12,7 @@ vcpkg_extract_source_archive_ex(
patch_targets.patch
fftw3_arch_fix.patch
aligned_malloc.patch
bigobj.patch
)
vcpkg_check_features(

View File

@ -1,7 +1,7 @@
{
"name": "fftw3",
"version": "3.3.10",
"port-version": 3,
"port-version": 4,
"description": "FFTW is a C subroutine library for computing the discrete Fourier transform (DFT) in one or more dimensions, of arbitrary input size, and of both real and complex data (as well as of even/odd data, i.e. the discrete cosine/sine transforms or DCT/DST).",
"homepage": "https://www.fftw.org/",
"dependencies": [

View File

@ -2254,7 +2254,7 @@
},
"fftw3": {
"baseline": "3.3.10",
"port-version": 3
"port-version": 4
},
"fftwpp": {
"baseline": "2019-12-19",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "1ab09732ff55a9c0ff0fadd66623f38773338649",
"version": "3.3.10",
"port-version": 4
},
{
"git-tree": "2bd307eb2dafcd4938d16fc484fbbb731228f4c3",
"version": "3.3.10",