mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Make options that control target generation more consistent
This commit is contained in:
parent
6de8f4a416
commit
75fdfe3e0e
@ -11,9 +11,11 @@ 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)
|
|
||||||
option(FMT_TESTS "Generate tests." ON)
|
# Options that control generation of various targets.
|
||||||
option(FMT_DOCS "Generate doxygen documentation." ON)
|
option(FMT_DOC "Generate the doc target." ON)
|
||||||
|
option(FMT_INSTALL "Generate the install target." ON)
|
||||||
|
option(FMT_TEST "Generate the test target." ON)
|
||||||
|
|
||||||
project(FORMAT)
|
project(FORMAT)
|
||||||
|
|
||||||
@ -115,11 +117,11 @@ endif ()
|
|||||||
set_target_properties(cppformat
|
set_target_properties(cppformat
|
||||||
PROPERTIES COMPILE_FLAGS "${FMT_EXTRA_COMPILE_FLAGS}")
|
PROPERTIES COMPILE_FLAGS "${FMT_EXTRA_COMPILE_FLAGS}")
|
||||||
|
|
||||||
if (FMT_DOCS)
|
if (FMT_DOC)
|
||||||
add_subdirectory(doc)
|
add_subdirectory(doc)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (FMT_TESTS)
|
if (FMT_TEST)
|
||||||
enable_testing()
|
enable_testing()
|
||||||
add_subdirectory(test)
|
add_subdirectory(test)
|
||||||
endif ()
|
endif ()
|
||||||
|
Loading…
Reference in New Issue
Block a user