Skip to content

Commit

Permalink
Make options that control target generation more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Aug 31, 2015
1 parent 6de8f4a commit 75fdfe3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ if (NOT CMAKE_BUILD_TYPE)
endif ()

option(FMT_PEDANTIC "Enable extra warnings and expensive tests." OFF)
option(FMT_INSTALL "Generate install target." ON)
option(FMT_TESTS "Generate tests." ON)
option(FMT_DOCS "Generate doxygen documentation." ON)

# Options that control generation of various targets.
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)

Expand Down Expand Up @@ -115,11 +117,11 @@ endif ()
set_target_properties(cppformat
PROPERTIES COMPILE_FLAGS "${FMT_EXTRA_COMPILE_FLAGS}")

if (FMT_DOCS)
if (FMT_DOC)
add_subdirectory(doc)
endif ()

if (FMT_TESTS)
if (FMT_TEST)
enable_testing()
add_subdirectory(test)
endif ()
Expand Down

0 comments on commit 75fdfe3

Please sign in to comment.