Acheivable warning level, AVX in release

nix
weefuzzy 7 years ago
parent 58c1ea682a
commit 17ee677197

@ -68,9 +68,15 @@ add_library(FFTLIB STATIC ${FFT_SOURCES})
target_link_libraries( target_link_libraries(
FFTLIB PRIVATE ${FFT_LINK} FFTLIB PRIVATE ${FFT_LINK}
) )
if(WIN32)
target_compile_options(
FFTLIB PRIVATE $<$<NOT:$<CONFIG:DEBUG>>: /arch:AVX>
)
else(WIN32)
target_compile_options( target_compile_options(
FFTLIB PRIVATE $<$<NOT:$<CONFIG:DEBUG>>: -mavx -msse -msse2 -msse3 -msse4> FFTLIB PRIVATE $<$<NOT:$<CONFIG:DEBUG>>: -mavx -msse -msse2 -msse3 -msse4>
) )
endif(WIN32)
add_library(FLUID_SC_WRAPPER INTERFACE) add_library(FLUID_SC_WRAPPER INTERFACE)
target_sources(FLUID_SC_WRAPPER target_sources(FLUID_SC_WRAPPER

@ -1,6 +1,8 @@
target_compile_features(${PLUGIN} PUBLIC cxx_std_14)
if(MSVC) if(MSVC)
target_compile_options(${PLUGIN} PRIVATE /W4 /WX) target_compile_options(${PLUGIN} PRIVATE /W4)
else() else()
target_compile_options(${PLUGIN} PRIVATE -Wall -Wextra -Wpedantic -Wreturn-type -Wconversion) target_compile_options(${PLUGIN} PRIVATE -Wall -Wextra -Wpedantic -Wreturn-type -Wconversion)
endif() endif()
@ -74,7 +76,11 @@ endif()
if(MSVC) if(MSVC)
target_compile_options(${PLUGIN} PRIVATE /arch:AVX -D_USE_MATH_DEFINES) target_compile_options(${PLUGIN} PRIVATE /arch:AVX -D_USE_MATH_DEFINES)
endif() else(MSVC)
target_compile_options(
${PLUGIN} PRIVATE $<$<NOT:$<CONFIG:DEBUG>>: -mavx -msse -msse2 -msse3 -msse4>
)
endif(MSVC)
####### added the fluid_decomposition ####### added the fluid_decomposition

Loading…
Cancel
Save