diff --git a/CMakeLists.txt b/CMakeLists.txt index a003f400..3c2b7b4a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,10 +11,11 @@ endif() if (MSVC) add_compile_definitions(_CRT_SECURE_NO_WARNINGS) add_compile_definitions(_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING) + # /MP is MSVC-only: icx rejects it outright once offloading is enabled. add_compile_options( - $<$:/MP> + $<$,$>:/MP> $<$:/utf-8> - $<$:/MP> + $<$,$>:/MP> $<$:/utf-8> ) endif()