mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 09:28:21 +00:00
add option to disable install
This commit is contained in:
parent
2923d7f588
commit
2161823559
@ -11,6 +11,7 @@ if (NOT CMAKE_BUILD_TYPE)
|
|||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
option(FMT_PEDANTIC "Enable extra warnings and expensive tests." OFF)
|
option(FMT_PEDANTIC "Enable extra warnings and expensive tests." OFF)
|
||||||
|
option(FMT_INSTALL "Generate install target." ON)
|
||||||
|
|
||||||
project(FORMAT)
|
project(FORMAT)
|
||||||
|
|
||||||
@ -216,7 +217,9 @@ if (EXISTS .gitignore)
|
|||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# Install targets.
|
# Install targets.
|
||||||
set(FMT_LIB_DIR lib CACHE STRING
|
if (FMT_INSTALL)
|
||||||
"Installation directory for libraries, relative to ${CMAKE_INSTALL_PREFIX}.")
|
set(FMT_LIB_DIR lib CACHE STRING
|
||||||
install(TARGETS cppformat DESTINATION ${FMT_LIB_DIR})
|
"Installation directory for libraries, relative to ${CMAKE_INSTALL_PREFIX}.")
|
||||||
install(FILES format.h DESTINATION include/cppformat)
|
install(TARGETS cppformat DESTINATION ${FMT_LIB_DIR})
|
||||||
|
install(FILES format.h DESTINATION include/cppformat)
|
||||||
|
endif ()
|
||||||
|
Loading…
Reference in New Issue
Block a user