diff --git a/libdistopia/CMakeLists.txt b/libdistopia/CMakeLists.txt index b9c69f38..99d66ee5 100644 --- a/libdistopia/CMakeLists.txt +++ b/libdistopia/CMakeLists.txt @@ -18,11 +18,15 @@ target_include_directories(libdistopia PUBLIC ${CMAKE_CURRENT_LIST_DIR} "${CMAKE_CURRENT_LIST_DIR}/include") +# if (MSVC) +# target_compile_options(libdistopia PUBLIC /arch:AVX2 /Gv) +# endif() + if (DISTOPIA_LIBDISTOPIA_SUPRESS_MSVC_OPT) # causes compiler crash on MSVC on GHA message(STATUS "Supressing MSVC optimisations in libdistopia") message(WARNING "This should only be used for testing and debugging purposes") if (MSVC) - target_compile_options(libdistopia PRIVATE /O1) + target_compile_options(libdistopia PRIVATE /Od /Gv /GF /Gy) endif() endif()