forked from fmtlib/fmt
Reset CMAKE_REQUIRED_FLAGS
This commit is contained in:
@ -29,9 +29,8 @@ if (HAVE_STD_CPP11_FLAG)
|
|||||||
int main() {}" FMT_CPP11_CMATH)
|
int main() {}" FMT_CPP11_CMATH)
|
||||||
if (FMT_CPP11_CMATH)
|
if (FMT_CPP11_CMATH)
|
||||||
set(CPP11_FLAG -std=c++11)
|
set(CPP11_FLAG -std=c++11)
|
||||||
else ()
|
|
||||||
set(CMAKE_REQUIRED_FLAGS "")
|
|
||||||
endif ()
|
endif ()
|
||||||
|
set(CMAKE_REQUIRED_FLAGS )
|
||||||
else ()
|
else ()
|
||||||
check_cxx_compiler_flag(-std=c++0x HAVE_STD_CPP0X_FLAG)
|
check_cxx_compiler_flag(-std=c++0x HAVE_STD_CPP0X_FLAG)
|
||||||
if (HAVE_STD_CPP0X_FLAG)
|
if (HAVE_STD_CPP0X_FLAG)
|
||||||
@ -66,7 +65,6 @@ if (WIN32)
|
|||||||
else ()
|
else ()
|
||||||
check_symbol_exists(open fcntl.h HAVE_OPEN)
|
check_symbol_exists(open fcntl.h HAVE_OPEN)
|
||||||
endif ()
|
endif ()
|
||||||
message("HAVE_OPEN: ${HAVE_OPEN}")
|
|
||||||
if (HAVE_OPEN)
|
if (HAVE_OPEN)
|
||||||
add_definitions(-DFMT_USE_FILE_DESCRIPTORS=1)
|
add_definitions(-DFMT_USE_FILE_DESCRIPTORS=1)
|
||||||
set(FMT_SOURCES ${FMT_SOURCES} posix.cc posix.h)
|
set(FMT_SOURCES ${FMT_SOURCES} posix.cc posix.h)
|
||||||
|
Reference in New Issue
Block a user