From kehw@bnl.gov Wed Jun 10 16:59:44 2020 From: kehw@bnl.gov (Ke, Hongwei) Date: Wed, 10 Jun 2020 14:59:44 +0000 Subject: how to use variable Vc_AVX_INTRINSICS_BROKEN Message-ID: <491F2C5A-05A2-4733-9B47-CACDC8E92618@bnl.gov> Hi Expert, I have Vc build successfully on my machine. When I tried to link it to my project, I would like to avoid using AVX and AVX2. I did the following in my CMakeLists.txt set(Vc_AVX_INTRINSICS_BROKEN TRUE) set(Vc_AVX2_INTRINSICS_BROKEN TRUE) find_package(Vc REQUIRED) However, setting the variables seems has no effect. I still have -mavx flag. Could you show me how to properly use these variables? Best regards, Hongwei Ke