From 35f4ee2de84157a8ee6319b429d1d7eb4c516fe3 Mon Sep 17 00:00:00 2001 From: Yangqing Jia Date: Tue, 8 Aug 2017 22:46:05 -0700 Subject: [PATCH] Revert #1027 Summary: TSIA Closes https://github.com/caffe2/caffe2/pull/1060 Differential Revision: D5590958 Pulled By: Yangqing fbshipit-source-id: e557eb604e5838255c82c3f59f07f4037cf0a487 --- cmake/MiscCheck.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/MiscCheck.cmake b/cmake/MiscCheck.cmake index 340beb3c5..f458bbd12 100644 --- a/cmake/MiscCheck.cmake +++ b/cmake/MiscCheck.cmake @@ -26,6 +26,7 @@ endif() # is being deprecated. As a result, we will test if this is the environment we # are building under. If yes, we will turn off deprecation warning for a # cleaner build output. +set(CMAKE_REQUIRED_FLAGS "-std=c++11") CHECK_CXX_SOURCE_COMPILES( "#include int main(int argc, char** argv) {