Skip to content

Commit

Permalink
cmake: add UNIT_TESTS_BUILD preprocessor var based on WITH_TESTS cmak…
Browse files Browse the repository at this point in the history
…e var

Signed-off-by: Ricardo Dias <[email protected]>
  • Loading branch information
rjfd committed Feb 21, 2019
1 parent 59db0ac commit f42c440
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ option(ENABLE_COVERAGE "Coverage is enabled" OFF)
option(PG_DEBUG_REFS "PG Ref debugging is enabled" OFF)

option(WITH_TESTS "enable the build of ceph-test package scripts/binaries" ON)
set("UNIT_TESTS_BUILT", ${WITH_TESTS})
set(CEPH_TEST_TIMEOUT 3600 CACHE STRING
"Maximum time before a CTest gets killed" )

Expand Down
3 changes: 3 additions & 0 deletions src/include/config-h.in.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -351,4 +351,7 @@
/* Define if seastar is available. */
#cmakedefine HAVE_SEASTAR

/* Define if unit tests are built. */
#cmakedefine UNIT_TESTS_BUILT

#endif /* CONFIG_H */

0 comments on commit f42c440

Please sign in to comment.