diff --git a/CMakeLists.txt b/CMakeLists.txt index 0ca55b14d..2f8a4ad1e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,9 @@ set (fasttext_VERSION_MINOR 1) include_directories(fasttext) -set(CMAKE_CXX_FLAGS " -pthread -std=c++17 -funroll-loops -O3 -march=native") +if (NOT MSVC) + set(CMAKE_CXX_FLAGS " -pthread -std=c++17 -funroll-loops -O3 -march=native") +endif() set(HEADER_FILES src/args.h