fix for compilation of Vc on Mac ( https://savannah.cern.ch/bugs/?95756 )
authorsgorbuno <sgorbuno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 6 Jul 2012 09:09:33 +0000 (09:09 +0000)
committersgorbuno <sgorbuno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 6 Jul 2012 09:09:33 +0000 (09:09 +0000)
Vc/cmake/VcMacros.cmake

index f5956f4..7f247b3 100644 (file)
@@ -105,7 +105,9 @@ endmacro()
 macro(vc_check_assembler)
    if(APPLE)
       if(NOT Vc_COMPILER_IS_CLANG)
-         message(WARNING "Apple does not provide an assembler with AVX support. Please use Clang instead of GCC.")
+         message(WARNING "Apple does not provide an assembler with AVX support. AVX will not be available. Please use Clang if you want to use AVX.")
+         set(Vc_DEFINITIONS "${Vc_DEFINITIONS} -DVC_NO_XGETBV")
+         set(Vc_AVX_INTRINSICS_BROKEN true)
       endif()
    else(APPLE)
       if(${ARGC} EQUAL 1)