refs #5537 add BUILD_SRC_TESTS to be able to build just those tests in Xcode

git-svn-id: file:///svn/toku/tokudb@48382 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Leif Walsh 2013-04-17 00:01:11 -04:00 committed by Yoni Fogel
parent 9e79e56ba2
commit 6497257245
2 changed files with 4 additions and 4 deletions

View file

@ -81,7 +81,7 @@ set(BUILDNAME "${branchname} ${buildname_build_type} ${CMAKE_SYSTEM} ${machine_t
include(CTest)
if (BUILD_TESTING OR BUILD_FT_TESTS)
if (BUILD_TESTING OR BUILD_FT_TESTS OR BUILD_SRC_TESTS)
## set up full valgrind suppressions file (concatenate the suppressions files)
file(READ ft/valgrind.suppressions valgrind_suppressions)
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/valgrind.suppressions" "${valgrind_suppressions}")
@ -130,4 +130,4 @@ if (BUILD_TESTING OR BUILD_FT_TESTS)
option(RUN_PERF_TESTS "If set, run the perf tests." OFF)
configure_file(CTestCustom.cmake . @ONLY)
endif (BUILD_TESTING OR BUILD_FT_TESTS)
endif (BUILD_TESTING OR BUILD_FT_TESTS OR BUILD_SRC_TESTS)

View file

@ -1,6 +1,6 @@
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS _GNU_SOURCE DONT_DEPRECATE_ERRNO)
if(BUILD_TESTING)
if(BUILD_TESTING OR BUILD_SRC_TESTS)
file(GLOB transparent_upgrade_srcs RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" upgrade*.cc)
file(GLOB tdb_dontrun_srcs RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" bdb-simple-deadlock*.cc)
@ -707,4 +707,4 @@ if(BUILD_TESTING)
)
endif (BDB_FOUND)
set_tests_properties(${phenomenally_long_tests} PROPERTIES TIMEOUT 14400)
endif(BUILD_TESTING)
endif(BUILD_TESTING OR BUILD_SRC_TESTS)