From ffa32b19a76e07ffce41adb77133dd43552751b1 Mon Sep 17 00:00:00 2001
From: Tsuda Kageyu <tsuda.kageyu@gmail.com>
Date: Tue, 20 Dec 2016 11:48:14 +0900
Subject: [PATCH] Fix the CMake check for std::atomic_int.

std::atomic_int of Visual C++ 2012 cannot be constructed with integer.
---
 ConfigureChecks.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 4b55f273..98751b06 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -46,7 +46,7 @@ endif()
 check_cxx_source_compiles("
   #include <atomic>
   int main() {
-    std::atomic_int x;
+    std::atomic_int x(1);
     ++x;
     --x;
     return 0;
-- 
2.40.0