@drwhojan which option are you using for MinGW? Adding -march=haswell or newer intel to DCMAKE_CXX_FLAGS= entry? For MSVC you also need to modify DCMAKE_CXX_FLAGS= . Add arch:AVX2 for AVX2 build. Then it takes the option for all sub-projects. Else you have to manually set it in the properties for each sub-project.