mirror of
https://github.com/fmtlib/fmt.git
synced 2025-04-24 09:02:32 +00:00
remove 'FMT_CPPFORMAT' CMake option
This commit is contained in:
parent
e8ef103799
commit
aba72982df
@ -10,12 +10,6 @@ endif ()
|
|||||||
add_library(fmt ${FMT_SOURCES} ${FMT_HEADERS} ../README.rst ../ChangeLog.rst)
|
add_library(fmt ${FMT_SOURCES} ${FMT_HEADERS} ../README.rst ../ChangeLog.rst)
|
||||||
add_library(fmt::fmt ALIAS fmt)
|
add_library(fmt::fmt ALIAS fmt)
|
||||||
|
|
||||||
option(FMT_CPPFORMAT "Build cppformat library for backward compatibility." OFF)
|
|
||||||
if (FMT_CPPFORMAT)
|
|
||||||
message(WARNING "The cppformat library is deprecated, use fmt instead.")
|
|
||||||
add_library(cppformat ${FMT_SOURCES} ${FMT_HEADERS})
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
# Starting with cmake 3.1 the CXX_STANDARD property can be used instead.
|
# Starting with cmake 3.1 the CXX_STANDARD property can be used instead.
|
||||||
# Note: Don't make -std=c++11 public or interface, since it breaks projects
|
# Note: Don't make -std=c++11 public or interface, since it breaks projects
|
||||||
# that use C++14.
|
# that use C++14.
|
||||||
@ -93,7 +87,4 @@ if (FMT_INSTALL)
|
|||||||
install(TARGETS ${INSTALL_TARGETS} EXPORT ${targets_export_name}
|
install(TARGETS ${INSTALL_TARGETS} EXPORT ${targets_export_name}
|
||||||
DESTINATION ${FMT_LIB_DIR})
|
DESTINATION ${FMT_LIB_DIR})
|
||||||
install(FILES ${FMT_HEADERS} DESTINATION include/fmt)
|
install(FILES ${FMT_HEADERS} DESTINATION include/fmt)
|
||||||
if (FMT_CPPFORMAT)
|
|
||||||
install(TARGETS cppformat DESTINATION ${FMT_LIB_DIR})
|
|
||||||
endif ()
|
|
||||||
endif ()
|
endif ()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user