diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1e42639bb00289c031e6dce7507bd8fb40fc6893..0ee800eafdb12c9b76f244e01c4cabae55ce2180 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -150,7 +150,11 @@ if(CUDA_ENABLE)
             if(CUDA_KEEP_FILES)
                 set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS}" --keep --keep-dir "${PROJECT_BINARY_DIR}")
             endif(CUDA_KEEP_FILES)
-
+        
+            if(CUDA_VERSION VERSION_LESS 8.0)
+                # for CUDA 7.5 fix compile error: https://github.com/fireice-uk/xmr-stak/issues/34
+                set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS}" "-D_MWAITXINTRIN_H_INCLUDED")
+            endif()
         else()
             message(FATAL_ERROR "selected CUDA compiler '${CUDA_COMPILER}' is not supported")
         endif()