Reset CMAKE_REQUIRED_FLAGS

This commit is contained in:
vitaut 2015-03-19 07:59:12 -07:00
parent df477565f8
commit 100bc30773

View File

@ -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)