diff --git a/dlib/cmake_utils/set_compiler_specific_options.cmake b/dlib/cmake_utils/set_compiler_specific_options.cmake index 101c0b2f7..f1f7bcfb1 100644 --- a/dlib/cmake_utils/set_compiler_specific_options.cmake +++ b/dlib/cmake_utils/set_compiler_specific_options.cmake @@ -151,7 +151,8 @@ if (MSVC) if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 3.3) # Clang can compile all Dlib's code at Windows platform. Tested with Clang 5 - list(APPEND active_compile_opts "-Xclang -fcxx-exceptions") + list(APPEND active_compile_opts -Xclang) + list(APPEND active_compile_opts -fcxx-exceptions) endif() endif()