From 100bc307738bd046f0e82ca7e96c8da64c1e9673 Mon Sep 17 00:00:00 2001 From: vitaut Date: Thu, 19 Mar 2015 07:59:12 -0700 Subject: [PATCH] Reset CMAKE_REQUIRED_FLAGS --- CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 78227137..c51acd63 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,9 +29,8 @@ if (HAVE_STD_CPP11_FLAG) int main() {}" FMT_CPP11_CMATH) if (FMT_CPP11_CMATH) set(CPP11_FLAG -std=c++11) - else () - set(CMAKE_REQUIRED_FLAGS "") endif () + set(CMAKE_REQUIRED_FLAGS ) else () check_cxx_compiler_flag(-std=c++0x HAVE_STD_CPP0X_FLAG) if (HAVE_STD_CPP0X_FLAG) @@ -66,7 +65,6 @@ if (WIN32) else () check_symbol_exists(open fcntl.h HAVE_OPEN) endif () -message("HAVE_OPEN: ${HAVE_OPEN}") if (HAVE_OPEN) add_definitions(-DFMT_USE_FILE_DESCRIPTORS=1) set(FMT_SOURCES ${FMT_SOURCES} posix.cc posix.h)