vcpkg/ports/fftw3/bigobj.patch
Alexander Neumann 1aa8ac7a05
[fftw3] fix bigobj compiler option (#25972)
* fix bigobj in fftw3

* v db
2022-07-25 12:19:03 -07:00

14 lines
539 B
Diff

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})