diff --git a/CMakeLists.txt b/CMakeLists.txt index c2381e4d5f346d3a84edf4fb206ade3fa08267cc..8ba064fd854be1f2d984db7949aa6080ddf6200a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,12 +51,12 @@ target_compile_options( $<$<OR:$<CXX_COMPILER_ID:GNU>,$<CXX_COMPILER_ID:Clang>>: -W -Wall -Wextra -Werror -Wno-psabi $<$<CONFIG:Debug>:-g> - $<$<NOT:$<CONFIG:Debug>>:-O3 -flto> + $<$<NOT:$<CONFIG:Debug>>:-O3> > $<$<CXX_COMPILER_ID:MSVC>: - /W3 /WX /permissive- /utf-8 /bigobj + /W3 /WX /permissive- /utf-8 $<$<CONFIG:Debug>:/Od> - $<$<NOT:$<CONFIG:Debug>>:/Ot /GL /LTCG> + $<$<NOT:$<CONFIG:Debug>>:/Ot> > )