Skip to content

Commit

Permalink
try no xHost to broaden Windows build #2292
Browse files Browse the repository at this point in the history
  • Loading branch information
loriab committed Oct 6, 2021
1 parent b61ec3c commit f9f9ef2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ option_with_print(ENABLE_AUTO_LAPACK "Enables CMake to auto-detect LAPACK" ON)
option_with_print(ENABLE_PLUGIN_TESTING "Test the plugin templates build and run" OFF)
option_with_print(ENABLE_CYTHONIZE "Compile each python file rather than plaintext (requires cython) !experimental!" OFF)
if(CMAKE_CXX_COMPILER_ID MATCHES Intel)
option_with_flags(ENABLE_XHOST "Enables processor-specific optimization (with MSVC, it enables AVX2 instructions)" ON
"-xHost" "-march=native" "/arch:AVX2")
option_with_flags(ENABLE_XHOST "Enables processor-specific optimization (with MSVC, it enables AVX instructions)" ON
"-xHost" "-march=native" "/arch:AVX")
else()
option_with_flags(ENABLE_XHOST "Enables processor-specific optimization (with MSVC, it enables AVX2 instructions)" ON
"-march=native" "-xHost" "/arch:AVX2")
option_with_flags(ENABLE_XHOST "Enables processor-specific optimization (with MSVC, it enables AVX instructions)" ON
"-march=native" "-xHost" "/arch:AVX")
endif()
option_with_flags(ENABLE_CODE_COVERAGE "Enables details on code coverage" OFF
"-ftest-coverage")
Expand Down

0 comments on commit f9f9ef2

Please sign in to comment.