diff --git a/portfile.cmake b/portfile.cmake
index f4afdc197..6f85d8e0c 100644
--- a/portfile.cmake
+++ b/portfile.cmake
@@ -13,6 +13,26 @@ vcpkg_cmake_configure(
     PREFER_NINJA
     OPTIONS
         -DBUILD_TESTING=OFF
+        -DHAVE_MMINTRIN_H_EXITCODE=1
+        -DHAVE_MMINTRIN_H_EXITCODE__TRYRUN_OUTPUT="success"
+        -DHAVE_EMMINTRIN_H_EXITCODE=1
+        -DHAVE_EMMINTRIN_H_EXITCODE__TRYRUN_OUTPUT="success"
+        -DHAVE_PMMINTRIN_H_EXITCODE=1
+        -DHAVE_PMMINTRIN_H_EXITCODE__TRYRUN_OUTPUT="success"
+        -DHAVE_TMMINTRIN_H_EXITCODE=1
+        -DHAVE_TMMINTRIN_H_EXITCODE__TRYRUN_OUTPUT="success"
+        -DHAVE_AVX_ASM_EXITCODE=1
+        -DHAVE_AVX_ASM_EXITCODE__TRYRUN_OUTPUT="success"
+        -DHAVE_CPUID_EXITCODE=1
+        -DHAVE_CPUID_EXITCODE__TRYRUN_OUTPUT="success"
+        -DHAVE_INLINE_ASM_EXITCODE=1
+        -DHAVE_INLINE_ASM_EXITCODE__TRYRUN_OUTPUT="success"
+        -DHAVE_WEAK_SYMBOLS_EXITCODE=1
+        -DHAVE_WEAK_SYMBOLS_EXITCODE__TRYRUN_OUTPUT="success"
+        -DHAVE_ATOMIC_OPS_EXITCODE=1
+        -DHAVE_ATOMIC_OPS_EXITCODE__TRYRUN_OUTPUT="success"
+        -DSTDC_LIMIT_MACROS_REQUIRED_EXITCODE=1
+        -DSTDC_LIMIT_MACROS_REQUIRED_EXITCODE__TRYRUN_OUTPUT="success"
 )

 vcpkg_cmake_install()
 
