mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 06:21:00 +00:00
Fix open check
This commit is contained in:
parent
8c4db5081b
commit
e1c046c984
@ -24,9 +24,6 @@ else ()
|
|||||||
set(CPP11_FLAG -std=c++0x)
|
set(CPP11_FLAG -std=c++0x)
|
||||||
endif ()
|
endif ()
|
||||||
endif ()
|
endif ()
|
||||||
if (CPP11_FLAG)
|
|
||||||
set(CMAKE_REQUIRED_FLAGS ${CPP11_FLAG})
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
"${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||||
@ -64,6 +61,10 @@ if (HAVE_OPEN)
|
|||||||
set(FMT_SOURCES ${FMT_SOURCES} posix.cc posix.h)
|
set(FMT_SOURCES ${FMT_SOURCES} posix.cc posix.h)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
if (CPP11_FLAG)
|
||||||
|
set(CMAKE_REQUIRED_FLAGS ${CPP11_FLAG})
|
||||||
|
endif ()
|
||||||
|
|
||||||
add_library(format ${shared} ${FMT_SOURCES})
|
add_library(format ${shared} ${FMT_SOURCES})
|
||||||
if (CMAKE_COMPILER_IS_GNUCXX)
|
if (CMAKE_COMPILER_IS_GNUCXX)
|
||||||
set_target_properties(format PROPERTIES COMPILE_FLAGS
|
set_target_properties(format PROPERTIES COMPILE_FLAGS
|
||||||
|
Loading…
Reference in New Issue
Block a user