Skip to content

Commit

Permalink
cmake: Fix compilation with VisualStudio clang-cl (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniovazquezblanco authored May 6, 2024
1 parent 394fa85 commit cab901f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,12 @@ 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)
if (MSVC)
if (CMAKE_C_COMPILER_ID STREQUAL "Clang")
add_compile_options(-bigobj)
elseif (CMAKE_C_COMPILER_ID STREQUAL "MSVC")
add_compile_options(/bigobj)
endif ()
endif ()
if (HAVE_SSE)
set_source_files_properties (${fftw_dft_simd_sse2_SOURCE}
Expand Down

0 comments on commit cab901f

Please sign in to comment.