Skip to content

Commit f48765c

Browse files
committed
Fix fftw /bigobj warnings
1 parent dd8f3ff commit f48765c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/fftw3/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
313313
add_library (${fftw3_lib} ${SOURCEFILES})
314314
target_include_directories (${fftw3_lib} INTERFACE $<INSTALL_INTERFACE:include>)
315315
if (MSVC AND NOT (CMAKE_C_COMPILER_ID STREQUAL "Intel"))
316-
target_compile_definitions (${fftw3_lib} PRIVATE /bigobj HAVE_UINTPTR_T=1)
316+
target_compile_definitions (${fftw3_lib} PRIVATE $<$<COMPILE_LANGUAGE:CXX>:/bigobj> HAVE_UINTPTR_T=1)
317317
endif ()
318318
if (HAVE_SSE)
319319
target_compile_options (${fftw3_lib} PRIVATE ${SSE_FLAG})

0 commit comments

Comments
 (0)